Skip to content

Only register htmx.live JS API if the extension registers successfully - #4207

Open
scrhartley wants to merge 1 commit into
bigskysoftware:four-devfrom
scrhartley:live-ext-load
Open

scrhartley wants to merge 1 commit into
bigskysoftware:four-devfrom
scrhartley:live-ext-load

Conversation

@scrhartley

Copy link
Copy Markdown
Contributor

Description

It is confusing that htmx.live is available when the extension has not registered successfully.
I'm not aware that it's a desirable feature to only have the JS API available.

Corresponding issue: #4205

Testing

Tested manually using example from the corresponding issue.
Behavior is as expected for both when htmx.config.extensions is and is not in effect.
Change is simple enough that regressions are unlikely (call to init is part of htmx.registerExtension).

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (four for website changes, four-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