You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AppState.shared.isUnicornModePaused will be set when the user has enabled it for a focus and that focus mode is enabled. The problem is that it needs to be set at app launch too, in case the user has the focus mode already enabled.
I think FocusFilterIntent should be run at app launch automatically, so it will set the correct initial state.
I'm aware I could do AppState.shared.isUnicornModePaused = try await FocusFilterIntent.current.isUnicornModePaused at app launch, but I think it would be better if focus filters just worked. This way also does not work if some synchronous initialization state needs to know about isUnicornModePaused as it's initialized asynchronously.
The text was updated successfully, but these errors were encountered:
Description
Lets say I have a focus filter like this:
AppState.shared.isUnicornModePaused
will be set when the user has enabled it for a focus and that focus mode is enabled. The problem is that it needs to be set at app launch too, in case the user has the focus mode already enabled.I think FocusFilterIntent should be run at app launch automatically, so it will set the correct initial state.
I'm aware I could do
AppState.shared.isUnicornModePaused = try await FocusFilterIntent.current.isUnicornModePaused
at app launch, but I think it would be better if focus filters just worked. This way also does not work if some synchronous initialization state needs to know aboutisUnicornModePaused
as it's initialized asynchronously.The text was updated successfully, but these errors were encountered: