> One of the amazing things from David Guillot’s talk is how his app updated the count of favored items even though that element was very far away from the component that changed the count.
This might not seem like a big deal, but it looks like Datastar dramatically reduces the overhead of a common use-case. The article shows how to update a component and a related count, elsewhere in the UI.
A more practical use-case might be to show a toast in tandem with navigating to another view. Or updating multiple fields on a form validation failure.
This might not seem like a big deal, but it looks like Datastar dramatically reduces the overhead of a common use-case. The article shows how to update a component and a related count, elsewhere in the UI.
A more practical use-case might be to show a toast in tandem with navigating to another view. Or updating multiple fields on a form validation failure.