Replies: 2 comments 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help. I couldn't make it work. Here I made a toy project. https://github.com/atacan/DiscusssionSharedInDependency/blob/main/DiscusssionSharedInDependency/ContentView.swift I used |
Beta Was this translation helpful? Give feedback.
-
Is there a way to subscribe to the changes that happen to a shared state outside of a reducer, particularly the state that is persisted on file storage?
It would be great if I could subscribe to changes within a dependency to store them in its
LockIsolated
value.When a user makes changes on the settings window, for example, I couldn't expose an endpoint on the client to update its internal parameters, because the settings module did not need to import the dependency's module, and the dependency needs a long build time.
I guess the solution right now is to import it and do the following in the settings reducer?
Beta Was this translation helpful? Give feedback.
All reactions