Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ehsan sarshar TheEhsanSarshar

🏠
Working from home
View GitHub Profile
@TheEhsanSarshar
TheEhsanSarshar / middleware.ts
Last active Jun 3, 2021
persist middleware catch implemented correctly
View middleware.ts
import {
GetState,
PartialState,
SetState,
State,
StateCreator,
StoreApi,
} from './vanilla'
export const redux = <S extends State, A extends { type: unknown }>(