Post AhvqCCZ95Py6DCXc7U by delegatevoid@mastodon.gamedev.place
 (DIR) More posts by delegatevoid@mastodon.gamedev.place
 (DIR) Post #AhvqCCZ95Py6DCXc7U by delegatevoid@mastodon.gamedev.place
       2024-05-06T04:20:02Z
       
       0 likes, 0 repeats
       
       I'm using the awesome #fluxor library at https://github.com/mrpmorris/Fluxor for  #flux #redux. I get most of it but I seem to be missing one thing. What's the correct way to `subscribe` to state changes? The view is notified of state changes, but it seems middleware can only be notified before and after actions are dispatched, not after new states have been reduced. Whenever the state has changed I want to notify external components, what's the fluxor way of doing this? #dotnet #csharp #blazor #wasm
       
 (DIR) Post #AhvqCDgytlpXhnDNyK by delegatevoid@mastodon.gamedev.place
       2024-05-06T05:39:21Z
       
       0 likes, 0 repeats
       
       It almost seems like I can use `Middleware.AfterDispatch` and get the state by iterating over the `IStore.Features` to then get the `Statte` but it feels very dirty to me.
       
 (DIR) Post #AhvqCEvYJ551XH2XK4 by delegatevoid@mastodon.gamedev.place
       2024-05-06T08:25:31Z
       
       0 likes, 0 repeats
       
       I've updated my #fluxor diagram to reflect the new information I received. I was totally unaware that `Effects` are only invoked after actions have been handled by the reducers.