Content pfp
Content
@
0 reply
0 recast
0 reaction

Samuel pfp
Samuel
@samuellhuber.eth
Why does frog have state in FrameData but not in FrameResponse? I just want to return my own state in Frame Response darn it :( Frames Spec says it should be serialized JSON so JSON.stringify() should be perfect. Then when I get FrameData back I should be able to unwrap that Anyone got a working sample/tutorial?
1 reply
0 recast
4 reactions

bchow pfp
bchow
@bchow
I may be misunderstanding your question, but I think you want to modify the state with the `c.deriveState` function It's a bit confusing because the name `deriveState` suggests read-only behavior, but it also persists the modifications made to the `previousState` reference
2 replies
0 recast
1 reaction

bchow pfp
bchow
@bchow
Docs for reference: https://frog.fm/reference/frog-frame-context#derivestate I've been meaning to bring this up as feedback to @wevm, @awkweb or @jxom
1 reply
0 recast
1 reaction

Samuel pfp
Samuel
@samuellhuber.eth
yeah no the docs confuse me even more lol. I may be too smooth brained is that context per frame interaction? so user stats in / and does a TX Frame based on tx json from /tx and in /tx-return I now save transactionId returned from Client in state how can I manipulate state in /tx? for that chain of interactions?
0 reply
0 recast
0 reaction