Skip to content

Commit

Permalink
Update event-store.ts (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusKoronciCH authored May 7, 2024
1 parent 5592f3b commit 441f0b1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/event-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ export function createEventStore<T extends object>(
const [value, setValue] = useState<GetValueType<T, K>>(defaultValue);

const handleUpdate = useCallback((payload: GetValueType<T, K>) => {
if (!disableCache) setValue(payload);
if (!disableCache) setValue(payload);
publish(type, payload);
}, []);
Expand Down

0 comments on commit 441f0b1

Please sign in to comment.