You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use request policy cache-first only one API call from projects.tsxshows up in the network inspector. As a sidenote, if I switch to request policy network-only then I get an infinite loop of API calls.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using @urql/next: "^1.1.1" and urql: "^4.0.6".
My client setup for SSR is the following
Now when I am doing a query, every fetch is done twice. Once from the component file (e.g.
projects.tsx
) where the query is done usingand once from
urql-core-chunk.mjs
.When I use request policy
cache-first
only one API call fromprojects.tsx
shows up in the network inspector. As a sidenote, if I switch to request policynetwork-only
then I get an infinite loop of API calls.Beta Was this translation helpful? Give feedback.
All reactions