Skip to content

Feedback for "Hooks for React" #68

@adover134

Description

@adover134

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions