GithubHelp home page GithubHelp logo

Comments (7)

SimoTod avatar SimoTod commented on June 15, 2024 1

No worries I'll try to have a look tonight/tomorrow and let you know

from alpine-turbo-drive-adapter.

SimoTod avatar SimoTod commented on June 15, 2024 1

@zepfietje
I was able to replicate and find the bug (705d496 😄 ).

Before I tag a new release, could you try https://cdn.jsdelivr.net/gh/alpinejs/alpine-turbolinks-adapter@bug/sibling-x-for-disappearing/dist/alpine-turbolinks-adapter.min.js and confirm it resolves your bug please? Thanks.

from alpine-turbo-drive-adapter.

SimoTod avatar SimoTod commented on June 15, 2024

Thanks for the bug report.Just to clarify. Are we saying that something like

<div x-data="{foo: ['one', 'two'], bar: ['red', 'blue']}">
    <template x-for="item1 in foo">
        <p x-text="item1"></p>
    </template>
    <template x-for="item2 in bar">
        <p x-text="item2"></p>
    </template>
</div>

will result in the second loop being removed when navigating back to the page?

<div x-data="{foo: ['one', 'two'], bar: ['red', 'blue']}">
    <template x-for="item1 in foo">
        <p x-text="item1"></p>
    </template>
</div>

from alpine-turbo-drive-adapter.

zepfietje avatar zepfietje commented on June 15, 2024

@SimoTod, thanks for your clear snippets. That's exactly what seems to happen when using the adapter.

I haven't put together a minimal reproducible example though.

from alpine-turbo-drive-adapter.

zepfietje avatar zepfietje commented on June 15, 2024

@SimoTod awesome! I can confirm it resolves the bug in my project.

from alpine-turbo-drive-adapter.

SimoTod avatar SimoTod commented on June 15, 2024

Thanks for confirming. I tagged a new version. It's a patch release so if you use the generic CDN link (0.1.x) you won't need to update the link. Since served by a CDN (I don't have control over it), it could take up to 24h to update.

from alpine-turbo-drive-adapter.

zepfietje avatar zepfietje commented on June 15, 2024

@SimoTod, thanks again for the quick fix!

from alpine-turbo-drive-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.