DEV Community

loading...

Discussion on: Good Bye Web APIs

mvila profile image
Manuel Vila Author

The backend is stateless, so in the example, the counter is unique for each user. To share the counter among all users, the backend must save it in a database.

Thread Thread
wormss profile image
WORMSS

And again, I ask how the UI gets to know that it has changed.

Thread Thread
mvila profile image
Manuel Vila Author

When you execute a remote method on an object, the attributes of the object are automatically transported between the frontend and the backend. So, when you change an attribute in the backend, the change is reflected in the frontend.