cannot .Listen to mutations on a string
See original GitHub issue(Reported by @aloani20 on gitter)
hi guys . I have this situation . on my client I was listening to property called “turn” using room.Listen ("turn", this.OnTurnChange);
and the state on the server look like this
this.setState({
dice : 0 ,
turn : "none"
});
but when i mutate the value of dice i could see the change on the client but changing turn did not trigger this.OnTurnChange.
I have come up with a result that mutating javascript string variable on the server did not effect the room client listener.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to make mutation of a string? JavaScript
You try to mutate a string which not possible, because strings are immutable. You need an assignment of the new value. Below a...
Read more >Mutations and Input Types
Both mutations and queries can be handled by root resolvers, ... Input types can't have fields that are other objects, only basic scalar...
Read more >How to cancel/abort a mutation query? #1551
Is there a way to cancel/abort mutation requests, similar to how cancelqueries does it for queries? I can't seem to figure that out....
Read more >Mutation Testing with Stryker
My team had a problem, code that had 100% coverage still had bugs & it was due to vague unit tests assertions- enter...
Read more >API Reference: ApolloServer
Providing a function is useful if you want to use a different root value depending on the operation's details, such as whether it's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
lick = like. so happy it worked
thanks Endel woks lick a charm.