Add bindings for ssrExchange. Upgrade to urql 1.1.3. #111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds bindings for the
ssrExchange
toreason-urql
and upgrades oururql
dependency to 1.1.3 馃帀 This will form the basis of our 1.1.0 release.While binding this exchange didn't prove to be too difficult, getting a working example with NextJS was non-trivial. For the time being, I decided to skip it. A few things make this really hard:
next-urql
package that we'd be able to bind to 馃帀 This should make things much easier in the near future, but also make our own support for thessrExchange
a bit moot.I don't want this feature to hold up development on other parts of
reason-urql
, so for now I've exposed the bindings and curious souls can venture forth with them if they want to!@kitten I'd love any thoughts you might have on the above or feelings around how to make SSR easier here. Tagging @Schmavery and @gugahoa as well for visibility.