-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onAdd
callback gets called multiple times
#147
Comments
Also happens with |
Yeah happens to me too, we need an urgent fix :( |
Thanks for reporting, and sorry for the trouble! A workaround, for now, is to provide This is due to Workaround: room.state.restaurants.onAdd((restaurant, restaurantKey) => {
console.log("Restaurant added");
restaurant.objects.onAdd(async (gameObject, objectKey) => {
console.log("Oh hi there!")
}, false) // here
}) |
SetSchema
'sonAdd
callback gets called twice when it is inside aMapSchema
.Now, if we look at browser console
Expectation
Reality
The text was updated successfully, but these errors were encountered: