Skip to content

Commit

Permalink
fixes example for delay
Browse files Browse the repository at this point in the history
  • Loading branch information
zarabotaet authored Apr 26, 2022
1 parent 605b80d commit 562bad4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/delay/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ import { createEvent, createStore } from 'effector';
import { delay } from 'patronum/delay';

const update = createEvent<string>();
const $data = createStore('');
const $timeout = createStore(500);

const logDelayed = delay({
source: $data,
source: update,
timeout: $timeout,
});

Expand Down

0 comments on commit 562bad4

Please sign in to comment.