Content pfp
Content
@
0 reply
0 recast
2 reactions

J. Valeska 🦊🎩🫂  pfp
J. Valeska 🦊🎩🫂
@jvaleska.eth
I have a problem to trigger and fetch some casts from mobile, the getCasts hook get triggered fine in the web version but it is not working on mobile (the component is not on the screen but it is not hidden, just translated in the x axis) tried with a hook, useEffect, and other variants with explicit triggers on navigation but cannot trigger the get casts or the render I am using onchain-based-agent-repo but I think this is something about react? (I am sure that it is something with react)
3 replies
3 recasts
8 reactions

J. Valeska 🦊🎩🫂  pfp
J. Valeska 🦊🎩🫂
@jvaleska.eth
was trying tl attach a video but failed, will upload to yt and try again
0 reply
1 recast
1 reaction

Shamim Hoon🥕🎩Ⓜ️ pfp
Shamim Hoon🥕🎩Ⓜ️
@shamimarshad
Hey, I understand you're struggling to trigger the getCasts hook on mobile devices. Since the component is translated on the x-axis but not hidden, React might be optimizing the render. To resolve this, consider using useLayoutEffect` instead of useEffect. Additionally, try adding a key prop to the component to force a re-render when navigation changes. Hey @aethernet can you help @jvaleska.eth to resolve her problem?
2 replies
0 recast
1 reaction

Edin Morgan 🧿🔮 🎩 pfp
Edin Morgan 🧿🔮 🎩
@edinmorgan89
The issue seems to be related to React’s rendering behavior, where the getCasts hook or related logic isn’t triggering on mobile, potentially due to the component being translated off screen on the x axis instead of being fully mounted or visible.
0 reply
0 recast
1 reaction