-
I'm using SSR (rendering in default mode) I have a server function that sets a cookie in Actix. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
If you providing an example of some code, people could try to help debug. Otherwise, we can only guess. My guess is that you should use |
Beta Was this translation helpful? Give feedback.
If you providing an example of some code, people could try to help debug. Otherwise, we can only guess. My guess is that you should use
create_blocking_resource
for the resource where you're calling the server function that writes the cookie, because otherwise the headers of the HTTP response will already have been sent by the time that Suspense resolves and it will be too late.