Replies: 1 comment
-
Hi, @ziimakc , did you find a good solution? I’m facing the same issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say you have api backend and on frontend side use
loaders
for SEO andclientLoaders
for performance to eliminate bff as middleman after first load.Let's say you store tokens in cookies and need to refresh them even on SSR first load.
For each route where we use loader or action we are forced to add
headers
and returndata
to ensure that for example any cookie set header during request to api is forwarded or cleared on auth error, including SSR.Maybe there is more elegant way to solve this?
Beta Was this translation helpful? Give feedback.
All reactions