I had the idea that onStateChange method includes the current state of the application, but the players MapState comes as an object without relevant data about Players. I changed that call to room.state.onChange = () => {} and it seems to be a better way to update my client-side state
Posts made by davidhernandeze
RE: When I get data from Room.onStateChange I don't receive my players
posted in Questions & Help •
When I get data from Room.onStateChange I don't receive my players
posted in Questions & Help •
I have a players Map Schema on my State, I receive my changes on my client, but the array players [] its empty. Is this a normal behavior?