Skip to content

Commit

Permalink
Fixed useSyncExternalStoreWithSelector to update memoizedSnapshot o…
Browse files Browse the repository at this point in the history
…n change (facebook#25968)

## Summary

<!--
Explain the **motivation** for making this change. What existing problem
does the pull request solve?
-->

A proposed fix for the bug described in
facebook#25967

## How did you test this change?

See the issue linked above, test scenario included in the code sandbox:
https://codesandbox.io/s/fervent-ives-0vm9es?file=/src/App.jsx

<!--
Demonstrate the code is solid. Example: The exact commands you ran and
their output, screenshots / videos if the pull request changes the user
interface.
How exactly did you verify that your PR solves the issue you wanted to
solve?
  If you leave this empty, your PR will very likely be closed.
-->
  • Loading branch information
felixshiftellecon committed Jul 24, 2024
1 parent c5eca9b commit a8d273d
Show file tree
Hide file tree
Showing 2 changed files with 581 additions and 540 deletions.
Loading

0 comments on commit a8d273d

Please sign in to comment.