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

Mention Versioning Issues in Hypermedia Applications that use Fragments #130

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

Conversation

fabb
Copy link

@fabb fabb commented Feb 12, 2024

I'm opening this PR to start a discussion of versioning issues that can happen in hypermedia applications and when using htmx for fetching fragments. I feel this issue is neglected in the documentation and should be represented in a balanced way, ideally with examples on how to mitigate the issues.

Examples on when an inconsistent state could happen aways assume that the client browser loaded a full htmx page, then a server application update is deployed, and then the client executes some action that loads a fragment into the dom somewhere:

  • Example 1: a loaded fragment references html elements outside of the fragment that have been added in an application update on the server, but are not yet contained in the browser dom.
  • Example 2: a loaded fragment references css classes that have been updated or added in an application update on the server
  • Example 3: an endpoint for fetching a fragment might have been removed in an application update on the server, but is still referenced in htmx element attributes in the browser dom.

Even if these cases are rare (depends on the number of users and deployment frequency), it would be great to give devs heads-up on potential issues.

Copy link

netlify bot commented Feb 12, 2024

Deploy Preview for hypermedia-systems ready!

Name Link
🔨 Latest commit 8624e0d
🔍 Latest deploy log https://app.netlify.com/sites/hypermedia-systems/deploys/65ca2ccdc3e6fe0008d12ba8
😎 Deploy Preview https://deploy-preview-130--hypermedia-systems.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codetalcott codetalcott added the enhancement New feature or request label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants