From 6238f7b408d819298eb6bbee86faab83824e016f Mon Sep 17 00:00:00 2001 From: Mikhail Kireev <29187880+kireevmp@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:06:35 +0100 Subject: [PATCH] fix(once): remove redundant sample as of effector v23 (#306) --- src/once/index.ts | 2 +- test-typings/once.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/once/index.ts b/src/once/index.ts index 4d82bf30..4a70863d 100644 --- a/src/once/index.ts +++ b/src/once/index.ts @@ -39,5 +39,5 @@ export function once( $canTrigger.reset(reset); } - return sample({ clock: trigger }); + return trigger } diff --git a/test-typings/once.ts b/test-typings/once.ts index 7438fdb3..19116bd1 100644 --- a/test-typings/once.ts +++ b/test-typings/once.ts @@ -4,8 +4,6 @@ import { createStore, createEvent, createEffect, - createDomain, - fork, } from 'effector'; import { once } from '../dist/once';