Skip to content

Commit

Permalink
fix(once): remove redundant sample as of effector v23 (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
kireevmp authored Nov 28, 2023
1 parent d1199ff commit 6238f7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/once/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ export function once<T>(
$canTrigger.reset(reset);
}

return sample({ clock: trigger });
return trigger
}
2 changes: 0 additions & 2 deletions test-typings/once.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import {
createStore,
createEvent,
createEffect,
createDomain,
fork,
} from 'effector';
import { once } from '../dist/once';

Expand Down

0 comments on commit 6238f7b

Please sign in to comment.