From 14e905fb4ecd76a0e3121e6f5cd86dabda370090 Mon Sep 17 00:00:00 2001 From: Per Date: Tue, 21 Jun 2016 22:35:11 +0200 Subject: [PATCH] Update README.md Can't set namespace under `effects`. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e3551e..c2319c1 100644 --- a/README.md +++ b/README.md @@ -289,11 +289,12 @@ An example subscription that logs `"dog?"` every second: ```js const app = choo() app.model({ + namespace: 'app', subscriptions: [ (send) => setInterval(() => send('app:print', { payload: 'dog?' }), 1000) ], effects: { - 'app:print': (action, state) => console.log(action.payload) + print: (action, state) => console.log(action.payload) } }) ```