dai-shi / react-tracked

State usage tracking with Proxies. Optimize re-renders for useState/useReducer, React Redux, Zustand and others.

Home Page:https://react-tracked.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question]useImmerReducer can not be used in createContainer?

TrendAlan opened this issue · comments

Hi I got another problem when I try to use Immer, you can check the example here
why createContainer(useCommonReducer); works but createContainer(useImmerAsReducer); can not work?

Any idea?

Seems like you failed to import it correctly?

import { useImmerReducer } from "use-immer";

My bad