Mistype in example
Meettya opened this issue · 2 comments
Meettya commented
Mistype at main project page - tramvai.dev
const incrementAction = createEvent('increment');
const countReducer = createReducer('count', 0) .on(increment, (state) => state + 1);
const Component = () => { const count = useSelector('count', (state) => state);
const increment = useActions(incrementAction);
.on(increment, -> .on(incrementAction ,
SuperOleg39 commented
Thank you for the report!
Will fix it in closest releases)
SuperOleg39 commented
Fixed https://tramvai.dev/