Skip to content

update optimistic extension to support live content#3824

Open
MichaelWest22 wants to merge 1 commit into
bigskysoftware:four-devfrom
MichaelWest22:optimistic-live
Open

update optimistic extension to support live content#3824
MichaelWest22 wants to merge 1 commit into
bigskysoftware:four-devfrom
MichaelWest22:optimistic-live

Conversation

@MichaelWest22
Copy link
Copy Markdown
Collaborator

Description

We can add support to hx-optimistic to also populate data-* attributes on its wrapping div for all the request parameters. This then allows the optional use of hx-live to reflect back the content from the request back into the inserted template data to allow the optimistic content to closely mirror the final content if required.

Corresponding issue:

Testing

Added basic tests for the new data attributes

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

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