-
Notifications
You must be signed in to change notification settings - Fork 20
Description
The dependency of 'Playroom Kit' says we can also use 'react@18'. This means, we need to use 'react-dom/client'.
However, the InsertCoin() uses react-dom, which is not compatible.
I was trying to use Playroom Kit with react and Phaser, to make a kind of TCG such as YU-GI-OH.
I thought I need to use react hooks for followings;
- subscribe the change on player states
- subscribe the change on number of players for match making; 1vs 1 game which will automatically start when two players are in the same lobby/room
- and the other things which needs to be subscribed.
However, because of the InsertCoin(), it was not able to continue from matchmaking.
This was even not working when called.
I called it in a phaser scene; when I tried vanilla phaser without react, it was working well.
However, when I added react, everything got worse.
I really want to know how to solve this problem; should I just use vanilla Phaser without react? Then I should give up using this 'Playroom Kit', since this cannot fulfill my need.