Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

test(hooks): add tests for re-renders #3500

Merged
merged 2 commits into from
Jun 6, 2022
Merged

Conversation

francoischalifour
Copy link
Member

This adds several test cases that should cover #3482 by re-rendering an InstantSearch app in multiple scenarios.

The test in <InstantSearchSSRProvider> covers the initial post in #3482. The <InstantSearch> tests already worked before introducing useSyncExternalStore() in #3489, but still makes sure that these scenarios work.

@francoischalifour francoischalifour changed the title test(hooks): add test for re-renders test(hooks): add tests for re-renders Jun 6, 2022
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 6, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8584d79:

Sandbox Source
algolia/create-instantsearch-app Configuration
routing-basic Configuration
hooks-example Configuration

@netlify
Copy link

netlify bot commented Jun 6, 2022

Deploy Preview for react-instantsearch ready!

Name Link
🔨 Latest commit 8584d79
🔍 Latest deploy log https://app.netlify.com/sites/react-instantsearch/deploys/629e2129b8ce7b0008a5379a
😎 Deploy Preview https://deploy-preview-3500--react-instantsearch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even though we want to change this, it's good to have the tests that will be changed at a later point

@francoischalifour francoischalifour enabled auto-merge (squash) June 6, 2022 15:45
@francoischalifour francoischalifour merged commit c54a04f into master Jun 6, 2022
@francoischalifour francoischalifour deleted the test/rerenders branch June 6, 2022 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants