NextJS - `createURL` should run server side
avremel opened this issue Β· comments
π Current behavior
createURL
returns an empty URL on the server and only populates on the client.
π Steps to reproduce
- Go the sandbox
- Disable Javascript
- Observe that the links are empty
Live reproduction
π Expected behavior
Expect that the links are populated server side. Theoretically this should be possible since we are running getServerState
on the server and know the UI state prior to SSR. (See #5236 (comment)).
Package version
algoliasearch 4.17.1, react-instantsearch-hooks-web 6.44.0
Operating system
Mac 11.6.5
Browser
Chrome 113.0.5672.126
Code of Conduct
- I agree to follow this project's Code of Conduct
A side effect of this issue: When you click on a link before the JS is fully loaded, you are taken to the broken link.