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

degeneratecall.eth 💡 pfp
degeneratecall.eth 💡
@degeneratecall.eth
Hmmm, I did try this, but didn't see the modified state in the next frame, and assumed it would only accept state updates via the reducer, but i'll try that again... ` <FrameContainer {...{ postUrl, previousFrame, pathname }} state={{ ...state, notEligible: true }}>`
1 reply
0 recast
0 reaction

Stephan pfp
Stephan
@stephancill
Hm this should work…
0 reply
0 recast
0 reaction