Adding injectMagics and initInterceptor to the public API
#4697
anulax1225
started this conversation in
3. Feature Ideas
Replies: 1 comment 3 replies
-
|
Is there a specific thing you're trying to do? And init interceptors basically processes Interceptors, primarily things like $persist that register getter/setter pairs. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As stayted in (Extending)[https://alpinejs.dev/advanced/extending] setion of the documentation, almost every alpine features should be reproducable by the end user.
But i found it difficulte to reproduce the (x-data)[https://github.com/alpinejs/alpine/blob/main/packages/alpinejs/src/directives/x-data.js] functionnalities. In my case, altought alpine gives every thing i need for procedural tree building with
ìnitTreeandaddScopeToNode, i don't have good control over the data i want to the node.Example
The classic way :
But if i don't want/can't pass this object trought the x-data directive, i won't get magic injections.
I'm not sure what
initInterceptorsis neccesary for or for what functionnalities i would need it. But if it's useful i would realy like using it.Beta Was this translation helpful? Give feedback.
All reactions