Fetch memoization not working?
Unanswered
Harlequin posted this in #help-forum
HarlequinOP
I have a couple dynamic components using cookies to fetch the current user data. I'm using the exact same fetch request in both components but I'm seeing the database hit twice instead of once. I may be misunderstanding but I thought duplicate fetch requests were supposed to be automatically memoized/cached? Note I'm using the production build version when testing.
1 Reply
HarlequinOP
Odd...Adding
cache: 'force-cache' seemed to make the caching work even though docs say thats the default already.