Skip to content
Discussion options

You must be logged in to vote

Interesting, I think I have a guess why this is happening.

The new x-cloak implementation waits until the next tick of the browser to "remove" the x-cloak attribute from an element.

This is so that the entire chunk of DOM has a chance to finish initializing before x-cloak is removed and it's revealed.

I think the reason you're seeing a blip is this: Livewire is updating the template from the server and re-adding x-cloak to an element, then when it gets picked up on the front-end and initialized, it gets re-removed, but after a tick, so you see a quick blip.

After thinking about this, there is no need to wait for a full tick to remove x-cloak. I have PRd and merged a change to remove the t…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@anatoliy-t7
Comment options

@anatoliy-t7
Comment options

Comment options

You must be logged in to vote
1 reply
@anatoliy-t7
Comment options

Comment options

You must be logged in to vote
2 replies
@anatoliy-t7
Comment options

@calebporzio
Comment options

Answer selected by anatoliy-t7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants