Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing archiver when deleting selected contacts #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshbduncan
Copy link

When deleting one or more contacts via radio button selection the contacts do get deleted but the HTML table doesn't update because the Archiver isn't being passed back to "index.html" in the render_template() function. This causes an error in "index.html" for the line {% if archiver.status() == "Waiting" %} that can be seen via the Flask debug server. If you manually reload the page the contacts disappear but I don't think that is how you wanted to example to behave.

HYPERMEDIA SYSTEMS: The Server Side for Delete Selected Contacts

The book is great! Thanks for sharing it!

When deleting one or more contacts via radio button selection the contacts do get deleted but the HTML table doesn't update because the Archiver isn't being passed back to "index.html" in the `render_template()` function. This causes an error in "index.html" for the line `{% if archiver.status() == "Waiting" %}` that can be seen via the Flask debug server. If you manually reload the page the contacts disappear but I don't think that is how you wanted to example to behave.

[HYPERMEDIA SYSTEMS: The Server Side for Delete Selected Contacts](https://hypermedia.systems/book/more-htmx-patterns/#_the_server_side_for_delete_selected_contacts)

The book is great! Thanks for sharing it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant