From 25a3e6ad8f3ec7951565e209be402abea72028f2 Mon Sep 17 00:00:00 2001 From: Per Date: Mon, 20 Jun 2016 22:31:54 +0200 Subject: [PATCH] Update README.md `every second` => `setInterval` not timeout. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 496d9d5..626544d 100644 --- a/README.md +++ b/README.md @@ -290,7 +290,7 @@ An example subscription that logs `"dog?"` every second: const app = choo() app.model({ subscriptions: [ - (send) => setTimeout(() => send('app:print', { payload: 'dog?' }), 1000) + (send) => setInterval(() => send('app:print', { payload: 'dog?' }), 1000) ], effects: { 'app:print': (state, action) => console.log(action.payload)