Example using the decorator @syncfield()

Ohhhh I see, so I doesn´t has sense because is already changed. So what kind of change to the array is enough in order for the decorator syncField to know that the array has changed ?

by user 632418299711324161

Here, you sort the array after pushing an element

by user 632418299711324161

When you push a new value you just reassign it:

myArray.push(newValue)
myArray = myArray

Just because i want the leaderboard values sorted

It’s not related to networking :slightly_smiling_face:

Ohhhh, I got it.

by user 632418299711324161

Okey, thank you marcel, really. Let me try.

by user 632418299711324161

:grin:

by user 632418299711324161

OMG It works !! It was so easy, haha. Thanks : )))

by user 632418299711324161

Great! :slightly_smiling_face: