From fad4b18cff4e1f107dbab84519e7ddb1c5eea832 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Sun, 6 Oct 2019 22:54:16 +0800 Subject: [PATCH] chore: change the stores injection api --- packages/omi/examples/stores/main.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/omi/examples/stores/main.js b/packages/omi/examples/stores/main.js index 717e058d8..d1d62aea1 100644 --- a/packages/omi/examples/stores/main.js +++ b/packages/omi/examples/stores/main.js @@ -65,9 +65,4 @@ const storeB = new class Store { } } -function combine(options) { - options.__combine_ = true - return options -} - -render(, 'body', combine({ storeA, storeB }) ) +render(, 'body', { storeA, storeB } )