You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2022. It is now read-only.
@@ -126,10 +116,9 @@ export function createStore(name, state = {}, reducer=defaultReducer) {
126
116
127
117
/**
128
118
* Returns a store instance based on its name
129
-
* @callback {String} name - The name of the wanted store
119
+
* @name {String} name - The name of the wanted store
130
120
* @returns {StoreInterface} the store instance
131
121
*/
132
-
133
122
exportfunctiongetStoreByName(name){
134
123
try{
135
124
returnstores[name].public;
@@ -141,14 +130,9 @@ export function getStoreByName(name) {
141
130
/**
142
131
* Returns a [ state, setState ] pair for the selected store. Can only be called within React Components
143
132
* @param {String|StoreInterface} identifier - The identifier for the wanted store
144
-
* @callback memoFn [state => state] - A memoization function to optimize component rerender. Receive the store state and return a subset of it. The component will only rerender when the subset changes.
133
+
* @param {(state:any) => any} memoFn [state => state] - A memoization function to optimize component rerender. Receive the store state and return a subset of it. The component will only rerender when the subset changes.
0 commit comments