Playroom
Create
Log in
Sign up
Roadmap
Feedback
Feature Requests
Voters
Yevgeniy Tsymbalyuk
Powered by Canny
1
[react] can not pass an arrow function into useMultiplayerState state
Yevgeniy Tsymbalyuk
When using useMultiplayerState, it doesn't accept arrow function when setting state
const [debug, setDebug] = useMultiplayerState('debug',1);
setDebug(debug => debug + 1) // doesn't work
August 30, 2024
Powered by Canny