Content pfp
Content
@
0 reply
0 recast
0 reaction

degeneratecall.eth πŸ’‘ pfp
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 pfp
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 pfp
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 pfp
Almanach
@almanach
Nice question !
0 reply
0 recast
1 reaction