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
Hi everyone - I have a question about nested Send API with custom reducer. I have an app with 3 levels subgraphs - Root, Middle and Leaf graphs.
The root level uses the Send API to run multiple Middle graphs executions.
Inside the Middle graphs, I'm using the Send API to run multiple Leaf graph executions.
The Leaf graphs need to change a value in the Root state. I have a custom reducer that handles multiple updates on the same key.
I've tried to use Annotate in the Middle graph level and also in the Root graph level but I get weird race conditions and seems like
some updates overwrite each other.
My question is - where should I use the custom reducer?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone - I have a question about nested Send API with custom reducer. I have an app with 3 levels subgraphs - Root, Middle and Leaf graphs.
The root level uses the Send API to run multiple Middle graphs executions.
Inside the Middle graphs, I'm using the Send API to run multiple Leaf graph executions.
The Leaf graphs need to change a value in the Root state. I have a custom reducer that handles multiple updates on the same key.
I've tried to use Annotate in the Middle graph level and also in the Root graph level but I get weird race conditions and seems like
some updates overwrite each other.
My question is - where should I use the custom reducer?
Beta Was this translation helpful? Give feedback.
All reactions