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:
Aria Minaei 2022-05-30 16:43:01 +02:00
parent 564e54c314
commit 9d767a08ac
3 changed files with 37 additions and 10 deletions

View file

@ -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,