Content pfp
Content
@
0 reply
0 recast
0 reaction

Akira Wu 🎩 pfp
Akira Wu 🎩
@0xakira
Hey guys, I'm building a frame using frames.js, which needs to load data from db once the user clicks the button For my approach, I 1. declare a default initialState 2. load from db, and modify the initialState 3. useFramesReducer with initialState However, the state that the reducer got is still unmodified, any tips?
3 replies
0 recast
0 reaction

Akira Wu 🎩 pfp
Akira Wu 🎩
@0xakira
btw I've checked the value of initialState right before passing it in "useFramesReducer", it was indeed modified. But when I console.log the state that the reducer got - it was still showing the default value
0 reply
0 recast
1 reaction

David Furlong pfp
David Furlong
@df
send code
1 reply
0 recast
0 reaction

David Furlong pfp
David Furlong
@df
gm
0 reply
0 recast
1 reaction