## Logging Changes You may want to log changes for debugging purposes

# Example ```tsx import { createStore, createStoreHook } from 'tiamut'; const defaultState = { value: 1, }; const fooStore = createStore({ initialState, actions: { inc(state) { const newState = { ...state }; newState.value += 1; return newState; }, }, }); function debugChanges( current: typeof defaultState, previous: typeof defaultState, actionName: string, ) { console.log(actionName, { current, previous, }); } fooStore.subscribe(debugChanges); const store = createStoreHook(fooStore); const MyApp = () => { const value = store.useSelect((state) => state.value); return (
{value}
); }; ```