#HELP -> Caching problem - still old data
23 messages · Page 1 of 1 (latest)
After that, I map the array but the displayed data is still old, altough the fetched data is new and different
do you have any revalidate exported const?
@waxen sigil do you have the React Dev Tools extension? In order to see if the problem comes from the state or the UI?
Yep, I have it
Could you take a look to your components to find the one that contains the state and verify the value of it?
(btw because you use it in client side components, the validate const isn't applicable)
Would you be kind enough to take look yourself? I just can't seem to find the **<p>** tag with React dev tools components that display the old information
The website is live in production, easy to inspect
so if the data is good, it seems you don't rerender the component when it should be
how do you display your data?
I figured out a pattern, from all of the data, only the Transactions and Accounts are displayed directly, inside a P tag and are the only ones that are not updated. The rest of the elements are inside another components and seems to be showing correct data. Could this be?
could you show ur coins state and ur filteredCoins variable?
here's the point
(I think)
You do not update the filteredCoins variable when the state changes
Well, even if i do this
{coins?.map((coin, key) => (
It's the same issue
coins is the state where I save the fetched supabase data
fetchCoins().then((data) => setCoins(data))
do you mind showing your whole component?