Skip to content

Commit

Permalink
fix(component drawer): correctly handle recursive state updates (#9245)
Browse files Browse the repository at this point in the history
  • Loading branch information
luvkapur authored Oct 15, 2024
1 parent 2a79ff7 commit 590732f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function useComponentFilter<T>(
const initialFilterState = { ...filterFromContext, state: defaultState };
updateFilter(filterContext, initialFilterState);
}
}, [filterId, filterContext, defaultState]);
}, [filterId]);

type Setter = Dispatch<SetStateAction<ComponentFilterCriteria<any>>>;

Expand Down

0 comments on commit 590732f

Please sign in to comment.