Exchange order #3647
-
We are having some glitches on how the data is loaded, and I wonder if we might not have our exchanges in the correct order. I think it would be really useful to document the correct order in a single place. I see on the authentication docs The authExchange is an asynchronous exchange, so it must be placed in front of all fetchExchanges but after all other synchronous exchanges, like the cacheExchange. but then it's not always stated if an exchange is async or sync, or where should it go on the list. In particular we have
Is this order correct? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I just found this explaining the order, but I'm not sure I know which ones are sync/asycn https://commerce.nearform.com/open-source/urql/docs/advanced/authoring-exchanges/#synchronous-first-asynchronous-last |
Beta Was this translation helpful? Give feedback.
-
In your case you want
|
Beta Was this translation helpful? Give feedback.
In your case you want