Closed francisconeves97 closed 2 years ago
I can confirm and reproduce the SSR bug. It's working on the previous version 6.26.0
It can be tested by simply disabling JavaScript in Google Chrome (Settings -> Prefrences -> Debugger -> Disable JavaScript)
This is very surprising, as on a quick glance, the only relevant change happened in 6.25.0 with https://github.com/algolia/react-instantsearch/commit/0a13867f7dd5a8a18e0957b2072bbde3b02d6490, otherwise also InstantSearch.js was updated between 6.26.0 and 6.27.0
Thanks for reporting this, we are investigating further!
The issue comes from #3489. We identified the problem and have a fix for this. We're currently writing more integration tests to make sure this doesn't happen again. You can expect a fix in the next minor version, we'll ping you here.
Thank you for reporting!
thanks @francoischalifour, awesome!
The SSR fix was released in v6.28.0. Thank you all!
Amazing, thank you!
π Bug description
SSR with Next.js is not working on the latest version of
react-instantsearch-hooks-web
andreact-instantsearch-hooks-server
(6.27.0). Every element that is rendered inside the<InstantSearch />
component is only rendered on the client side,π Bug reproduction
Steps to reproduce the behavior:
hooks-ssr
example: https://github.com/algolia/react-instantsearch/tree/v6.22.0/examples/hooks-ssrreact-instantsearch-hooks
,react-instantsearch-hooks-server
andreact-instantsearch-hooks-web
dependencies version from 6.22.0 to 6.27.0Live reproduction:
https://codesandbox.io/s/github/algolia/react-instantsearch/tree/v6.27.0/examples/hooks-next?file=/package.json
π Expected behavior
The widgets inside the
<InstantSearch />
should be server side renderedEnvironment
Additional context
Tried to downgrade to version 6.26.0 and the search results are server side rendered, so the issue should have been introduced on the last release