Skip to content

Conversation

@browner12
Copy link
Contributor

relying on the default random generated string only works if the code is compiled once, like in a loop or in a single component.

if you wish to use the directives across multiple compilations, like in separate components, you must pass a custom unique ID for them to only be rendered once.

relying on the default random generated string only works if the code is compiled once, like in a loop or in a single component. if you wish to use the directives across multiple compilations, like in separate components, you **must** pass a custom unique ID for them to only be rendered once.
@browner12 browner12 changed the title explain how to use @once/@pushOnce with a custom ID [12.x] explain how to use @once/@pushOnce with a custom ID Oct 17, 2025
@taylorotwell taylorotwell merged commit fbade13 into laravel:12.x Oct 18, 2025
@browner12 browner12 deleted the AB-pushonce-identifier branch October 18, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants