Skip to content

Commit

Permalink
fix: rename cleanEffect to clean
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Apr 16, 2023
1 parent 51f6d35 commit bb87814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export const createEffectCleaner = <T>(
const stateModifier = stateModifiers[key];
result[key] = new Proxy(stateModifier, handler);
return result;
}, {} as T & { cleanEffect: () => void });
}, {} as T & { clean: () => void });

// cleans effects
proxies.cleanEffect = () => {
proxies.clean = () => {
_stalled = true;

// abort asynchronous requests
Expand Down

0 comments on commit bb87814

Please sign in to comment.