You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is "Repo.update" commented out because it's yet to be implemented or should it work?
Hey @gregjohnsonsaltaire,
:save_to_db is just an example of some command that you would trigger either through action or directy from the DOM. I didn't show it in the README example.
For example you would have a form which would be pre-validated on client, and if it was valid :save_to_db command would be triggered (which would validate the data again on the backend) and insert the data to DB.
Same with :counter_saved - it justs shows that a command could return another action. For example you couldn't have some progress or loader running, and you want to notify the client that the command you requested finished successfully.
You can use anything inside the command and it should work - commands are not transpiled to JS and are run only on the server.
What would an example that rendered say a list of todo items with data sourced from the server look like (or is planned to look like)?
Hi @bartblast, would it be possible to update the README.md "Basic example" documentation?
Maybe I'm missing something obvious, but in the example ...
Also ...
Many thanks ...
The text was updated successfully, but these errors were encountered: