Skip to content

Commit

Permalink
fix(storage): fixed event hook name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Aug 5, 2021
1 parent 7989b82 commit 2b6e892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/storage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function storageExtension<TState extends BaseState>(options?: Par
return (store: InternalStore<TState>) => {
const storageKey = prefix ? `${prefix}:${store.name}` : store.name;

store.on(EVENTS.mutation.after, (event?: EventPayload<MutationEventData>) => {
store.on(EVENTS.mutation.success, (event?: EventPayload<MutationEventData>) => {
if (!event || event.data.mutation === '$storage') {
return;
}
Expand Down

0 comments on commit 2b6e892

Please sign in to comment.