How to observe client-side data changes in Charm without React?
I'm using Charm for state management in my Roblox game and have successfully set up server-client synchronization using the official example from the charm-example repository. The server-side implementation works perfectly with the provided example.
However, I'm not using React on the client side and need guidance on the best practices for observing atom changes and updating the UI accordingly.
Here's my current client-side code:
9 Replies
GitHub
GitHub - littensy/charm-example: 🍀 Use Charm to build a Roblox game
🍀 Use Charm to build a Roblox game. Contribute to littensy/charm-example development by creating an account on GitHub.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
React will not be used in this project.
In that case, how should I observe the value?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I don't plan to include any UI libraries.
I simply want to observe on the client side.
Is the current code okay?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
wo
I'll go with
subscribe
just use built-in library tools such functions as:
subscribe
, observe
etc.Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View