Accudio / async-alpine

Async Alpine brings advanced code splitting and lazy-loading to Alpine.js components!
https://async-alpine.dev
Apache License 2.0
152 stars 12 forks source link

`x-ref` seems to not be initialised #1

Closed Accudio closed 1 year ago

Accudio commented 2 years ago

Appears to be happening on at least Alpine version 3.3.3, haven't tested yet with further versions.

The attribute is being renamed, but it appears it isn't being exposed within the component.

Accudio commented 2 years ago

Not able to replicate this issue using x-ref in latest version, perhaps was an implementation issue or very specific circumstance.

Accudio commented 2 years ago

This issue has been reported to me so reopening this issue.

It seems to only occur in certain circumstances or for certain components.

Reporter shared a private repo with me to the component in question: https://github.com/serieseight/dimo/blob/ed4a47b577094acfa4378175956937408ddb6341/src/js/alpine-async/appFeatures.js

Accudio commented 1 year ago

I can't replicate this at all in version 0.4 although I was struggling to reproduce it before also. With the change in 0.4 to use x-ignore and behave more like Alpine would expect, I think bugs like this would likely to be fixed.

That said, if anyone encounters this again please let me know with a reduced test case I can debug.