Content
@
0 reply
0 recast
0 reaction
degeneratecall.eth π‘
@degeneratecall.eth
1) @frames, CC @stephancill @df I'm diving a bit deeper into some more (complex?) conditional logic. My issue is that, given the scenario below, I'm unable to determine in the reducer when loading pg3 which btn is clicked on pg2, ie `doB` or `doC`, because all I have available is the idx, which is `1` for both/either?
3 replies
0 recast
2 reactions
Stephan
@stephancill
You can modify the state that will be available in the next frame in your component that returns the next FrameContainer So when returning frame B, include some additional context in your state e.g. <FrameContainer state={β¦state, subpage: βBβ} Which you can then check in your reducer
1 reply
0 recast
1 reaction
David Furlong
@df
yeah thats what the state should solve; you should store whatever additional context you need in the reducer state
2 replies
0 recast
0 reaction
Almanach
@almanach
Nice question !
0 reply
0 recast
1 reaction