Giter VIP home page Giter VIP logo

Comments (7)

ryangjchandler avatar ryangjchandler commented on May 28, 2024

@ju5t Is the DOM not being updated at all?

from alpine-clipboard.

ju5t avatar ju5t commented on May 28, 2024

@ryangjchandler it is, I verified with Ray too and added now() to the list. When I remove the clipboard and just use standard blade to output the user's name for example, it refreshes as expected.

I'm pretty sure this is not related to $clipboard right now as this code, doesn't refresh either:

<span x-data="{ value: '{{ $user->name }}' }">
    <span x-html="value" />
</span>

$user is inside the loop, by the way. It's too bad it doesn't work as this is a pretty useful thing for us. I'll ask at Livewire.

from alpine-clipboard.

ryangjchandler avatar ryangjchandler commented on May 28, 2024

I'd maybe try a wire:key as well.

from alpine-clipboard.

ju5t avatar ju5t commented on May 28, 2024

I initially typed a lot more in my previous reply. TLDR-version; I tried wire:key and using custom id's combined with {{ $loop>index }} but that made no difference, unfortunately.

from alpine-clipboard.

ju5t avatar ju5t commented on May 28, 2024

@ryangjchandler you know what's weird too? I just noticed that on a page with Livewire pagination, whenever we use the clipboard, Livewire for some reason struggles with diffing things. I don't think we had this problem with Alpine v2, but I can't remember - it's already too long ago :)

Essentially all data that is within a clipboard/Alpine component is stuck and won't get the correct data on page 2 and so on (we use Livewire pagination, we're not refreshing the page).

I'll try and work with @entangle on those Livewire pages, I'm guessing that would work.

from alpine-clipboard.

ryangjchandler avatar ryangjchandler commented on May 28, 2024

Yeah, this is a problem even without $clipboard based on my own reproduction cases.

from alpine-clipboard.

ju5t avatar ju5t commented on May 28, 2024

I've opened up livewire/livewire#3778 to continue this. I don't think this issue should stay open so I will close it.

from alpine-clipboard.

Related Issues (16)

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.