Replies: 1 comment 1 reply
-
|
Not all internal functions are exposed to the private API though, but you're right, any change to those functions would be a breaking change. These functions are exposed in the private API because they are useful, we want to give htmx developers the flexibility they might need to fit their specific usecases. We also want to encourage them using extensions for custom behaviors, hence why we have this private API passed to extensions, as opposed to the public API available globally at all times. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Based on my logging, I'm seeing that the
init()function that can be used in an extension receives the private, internal API used by HTMX. Wouldn't this be dangerous to expose to "user land"? This would, in theory, make just about every change to the library, internal or external, a "breaking change". Or, is this the intent? That the entirety of the HTMX implementation is considered "public"?I just want to fully understand the implications before I possibly use the
apiRefpassed toinit().Beta Was this translation helpful? Give feedback.
All reactions