-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
You could change this line and all similar use functions from:
| useState: (map?: KnownKeys<TState>[]) => useNamespacedState(store, namespace as string, map), |
To be
useState: (...map: KnownKeys<TState>[]) => useNamespacedState(store, namespace as string, map),which would eliminate the need to explicitly pass the map in as an array:
const { loading, error } = useState('loading', 'error');Metadata
Metadata
Assignees
Labels
No labels