Closed Ridermansb closed 5 years ago
Um, based on error stack it's preact-compat library related issue, so please ask there.
I know there was some rumor, that mobx-preact is no longer needed and mobx-react should used instead, but I don't believe it's true ... https://github.com/mobxjs/mobx-preact/issues/18
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions.
When I import
useObserver
I'm getting this error:I tried both way ...
import { useObserver } from "mobx-react-lite";
or
import { useObserver } from "mobx-react";
Full example here: https://codesandbox.io/s/example-preact-mobx-state-tree-with-hooks-yk7o2