Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 useModel 时,Cannot read properties of null (reading 'dispatcher') #330

Open
XieMiLe opened this issue Nov 12, 2024 · 0 comments
Open

Comments

@XieMiLe
Copy link

XieMiLe commented Nov 12, 2024

怀疑还是上下文的问题,但是已经在 app.tsx 中使用了

`import { autoFixContext } from 'react-activation';

autoFixContext(
[require('react/jsx-runtime'), 'jsx', 'jsxs', 'jsxDEV'],
[require('react/jsx-dev-runtime'), 'jsx', 'jsxs', 'jsxDEV'],
);`

烦请大佬看一下。
demo https://github.com/XieMiLe/test_react_KeepAlive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant