The behavior I'm trying to implement is when a user taps a local notification, I want to show a bottom sheet in the Home screen with more information regarding that notification.
I've followed the steps here to set up UNUserNotificationCenterDelegate so I can listen to notification completions in AppDelegate.
However, I'm not sure how to relay this information to a Store to trigger a state change. I can save a flag in UserDefaults and set a variable in HomeState to it but that won't trigger a state change (so the Home view will display the previous state without the updated value from UserDefaults so the sheet won't show).
Is there a way to send an action when I receive the notification completion from AppDelegate, or is there a way to trigger a state refresh when a non-state object is updated?
I'm open to other ways to go about this as well.
Thanks!