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
I created a simple version of this by copying the fetch.ts file and allowing fetchOptions to return a promise. The benefit is that if you have to wait for an access_token or anything you don't need to add logic to each of your urql queries. Is this something that's worth a pull request? I tried to make it an exchange, but there is no standard delay pipe operation in wonka so I gave up.
The text was updated successfully, but these errors were encountered:
Any guidance how to write such exchange? I played around with this for about an hour or two.
Essentially I was unable to delay operations in the pipe until the token was available. I tried to subscibe to the original data and then sending it back out using a makeSubject, but that just caused a whole bunch of exceptions because it was expecting data instead of an uncompleted operation.
I created a simple version of this by copying the fetch.ts file and allowing fetchOptions to return a promise. The benefit is that if you have to wait for an access_token or anything you don't need to add logic to each of your urql queries. Is this something that's worth a pull request? I tried to make it an exchange, but there is no standard delay pipe operation in wonka so I gave up.
The text was updated successfully, but these errors were encountered: