Content pfp
Content
@
0 reply
0 recast
2 reactions

Michael Pfister pfp
Michael Pfister
@pfista
got caught off guard by vercels data cache... we call the hypersub smart contract to get a users remaining time via serverless function the calls are made with viem/alchemy, which uses fetch under the hood I guess vercel started caching fetch requests recently? this led to subscriptions not being recognized in our app ๐Ÿ˜ž
8 replies
2 recasts
39 reactions

Michael Pfister pfp
Michael Pfister
@pfista
If you run into this issue, you can add this route segment config to disable fetch caching within your route https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#fetchcache
0 reply
0 recast
4 reactions