Urql: next-urql: Add easy switch between getStaticProps / getServerSideProps / getInitialProps

Created on 25 Apr 2020  路  4Comments  路  Source: FormidableLabs/urql

Hello!

The reason for the question is so that urql doesn't necessarily opt-out us of automatic static optimization.

According to the docs:

This determination is made by the absence of getServerSideProps and getInitialProps in the page.

So if it were possible to select getStaticProps we would have the best of both world. 馃槉 But I'm just guessing for now!

future 馃敭

Most helpful comment

This was implemented in https://github.com/FormidableLabs/urql/pull/797 and will be part of the next-urql v1 release

All 4 comments

Not yet! But I see that this is an important feature we should add 馃憤

Looking forward to this! If it was in place, I would have jumped to try this out right away!

This RFC in next.js is related to this request and if that gets in it would make new options for this change.

This was implemented in https://github.com/FormidableLabs/urql/pull/797 and will be part of the next-urql v1 release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kitten picture kitten  路  3Comments

BjoernRave picture BjoernRave  路  3Comments

pix2D picture pix2D  路  4Comments

capaj picture capaj  路  5Comments

Andrew-Talley picture Andrew-Talley  路  4Comments