Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Oct 28, 2021

Since the intersection element is a ref not a state, it does not auto refresh.
This cases the intersectionObserver to be a noop since it is first supplied with null in the initial render.

The change is to useState instead of useRef so the useIntersectionObserver force updates after mount

@czgu czgu merged commit 9dd9392 into pinterest:master Oct 28, 2021
@czgu czgu deleted the fix2 branch October 28, 2021 23:03
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Feb 28, 2023
…terest#686)

* fix: schema navigator not refreshing when switching environments

* remove comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants