Send an action at application launch? #2279
-
I would like to send an, "application has launched," event into the store at startup time, to kick off background data fetching &c., and I'm wondering what's the right way to do that. I've already tried putting it in an |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
For the moment, I've stored a boolean on the application's |
Beta Was this translation helpful? Give feedback.
-
Hello, @sbeitzel |
Beta Was this translation helpful? Give feedback.
-
Try putting store.send(.appLaunched) in the App struct’s init. Best,Nevill WilderOn Jul 10, 2023, at 17:00, Cosmic Flamingo ***@***.***> wrote:
Wasn't there a PR that was merged recently that allows sending actions directly from Store?
store.send(.appLaunched)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Wasn't there a PR that was merged recently that allows sending actions directly from a
Store
instance?