floppy-disk 2.9.0-beta.1 → 2.9.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,7 +29,7 @@ export const createStore = (initializer, options = {}) => {
|
|
|
29
29
|
set(value);
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
const Watch = ({ selectDeps, render }) => {
|
|
32
|
+
const Watch = ({ selectDeps = defaultDeps, render }) => {
|
|
33
33
|
const store = useStore(selectDeps);
|
|
34
34
|
return render(store);
|
|
35
35
|
};
|
|
@@ -89,7 +89,7 @@ export const createStores = (initializer, options = {}) => {
|
|
|
89
89
|
store.set(value);
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
const Watch = ({ storeKey, selectDeps, render }) => {
|
|
92
|
+
const Watch = ({ storeKey, selectDeps = defaultDeps, render, }) => {
|
|
93
93
|
const store = useStores(storeKey, selectDeps);
|
|
94
94
|
return render(store);
|
|
95
95
|
};
|
|
@@ -92,7 +92,7 @@ const createStores = (initializer, options = {}) => {
|
|
|
92
92
|
store.set(value);
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
-
const Watch = ({ storeKey, selectDeps, render }) => {
|
|
95
|
+
const Watch = ({ storeKey, selectDeps = defaultDeps, render, }) => {
|
|
96
96
|
const store = useStores(storeKey, selectDeps);
|
|
97
97
|
return render(store);
|
|
98
98
|
};
|