Open xaviervia opened 1 year ago
The fix should probably be that useFacetCallback
reads the facet values instead of listening to changes in them. It's unclear why we went with the first one.
Was actually fixed by https://github.com/Mojang/ore-ui/releases/tag/v0.4.4
This issue also exists in the useFacetRef
BTW cc @pirelenito
In a scenario where a function that is listening on a facet is calling another function created with
useFacetCallback
, the value of the same facet inside the second callback might be outdated.For example: