How can we use experimental_useEffectEvent with Next13
Unanswered
Asari posted this in #help-forum
AsariOP
I get this error when using
next 13.4.7
react 18.2.0
useEffectEventTypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.experimental_useEffectEvent) is not a functionnext 13.4.7
react 18.2.0
5 Replies
@Asari I get this error when using `useEffectEvent`
ts
TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.experimental_useEffectEvent) is not a function
next 13.4.7
react 18.2.0
you have to use the experimental channel of react. the stable channel (18.2.0) doesn't have this hook
AsariOP
how can i do this with next
npm install react@experimental react-dom@experimentalor use server actions which will also use
react@experimentalAsariOP
ah thanks