Closed AlexanderKaran closed 1 year ago
Great start! Would you mind:
state
support also to the other imperative apis .replace
, pushTo
, replaceTo
?state
support to Link
via props <Link href="..." state={...} />
useRouter
) by adding 1/2 tests there tooThanks!!
@albertogasparin Added state to replace
, pushTo
and replaceTo
. I also added state to the Link
and changed it so we are not copying state and just using it from location
. Due to the state being in location, I am not sure the extra setup and changes to the useRouter
are needed as the four other functions get tested for a return in state and location is in useRouter
Looks great! I have one last ask: can you mention it in the docs? So it's clear that those APIs and Link accept state
and you can find the value inside location
@albertogasparin Added an example and updated Link props, let me know if you need more
Hooray! All contributors have signed the CLA.