Hotfix for the aggregate tracks not getting updated on changes
Co-authored-by: Fülöp <fulopkovacs@users.noreply.github.com>
This commit is contained in:
parent
564e54c314
commit
9d767a08ac
3 changed files with 37 additions and 10 deletions
|
@ -42,10 +42,14 @@ function useForceUpdate(debugLabel?: string) {
|
|||
* whenever there's a change in the values of the dependency array, or in the
|
||||
* derivations that are used within the callback function.
|
||||
*
|
||||
*
|
||||
* @param fn - The callback function
|
||||
* @param deps - The dependency array
|
||||
* @param debugLabel - The label used by the debugger
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* A common mistake with `usePrism()` is not including its deps in its dependency array. Let's
|
||||
* have an eslint rule to catch that.
|
||||
*/
|
||||
export function usePrism<T>(
|
||||
fn: () => T,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue