/**
* Changes the suffix added by `mapStores()`. Can be set to an empty string.
* Defaults to `"Store"`. Make sure to extend the MapStoresCustomization
- * interface if you need are using TypeScript.
+ * interface if you are using TypeScript.
*
* @param suffix - new suffix
*/
let debuggerEvents: DebuggerEvent[] | DebuggerEvent
const initialState = pinia.state.value[$id] as UnwrapRef<S> | undefined
- // avoid setting the state for option stores are it is set
+ // avoid setting the state for option stores if it is set
// by the setup
if (!isOptionsStore && !initialState && (!__DEV__ || !hot)) {
/* istanbul ignore if */
const $reset = __DEV__
? () => {
throw new Error(
- `🍍: Store "${$id}" is build using the setup syntax and does not implement $reset().`
+ `🍍: Store "${$id}" is built using the setup syntax and does not implement $reset().`
)
}
: noop
/**
* Setups a callback to be called whenever the state changes. It also returns a function to remove the callback. Note
- * than when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
+ * that when calling `store.$subscribe()` inside of a component, it will be automatically cleaned up when the
* component gets unmounted unless `detached` is set to true.
*
* @param callback - callback passed to the watcher