Closed OhSeungWan closed 7 months ago
Thanks for the report @OhSeungWan!
I reproduced the bug with some tests, and found that the culprit was actually the useMemo
in the return of useScopes
. Take a look at https://github.com/saasquatch/bunshi/commit/6e78a9b07ada22ab5a24ed3220c44d7547df21ac for the fix.
Will work on releasing this in version 2.1.3
@OhSeungWan this has been patched and released in v2.1.3
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
bunshi@2.1.2
for the project I'm working on.problem is:
When the value of the Scope Provider is first changed, the value of the scope inside the molecule function does not change. However, from then on, it will change, but it will change to the value one time before.
code for test
Here is the diff that solved my problem:
If I misunderstood or missed anything, please let me know!
This issue body was partially generated by patch-package.