-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[7.x] Once Blocks #33812
[7.x] Once Blocks #33812
Conversation
Woop Wooop! |
it would benefit a lot having a key 🔑 and dependencies so it’s rendered in the right order. This problem has already been solved in Wordpress. Check this out https://developer.wordpress.org/reference/functions/wp_enqueue_script/ |
@eduardoarandah I think the |
I ran into a use-case today where this would have came in handy! |
This will be available in Laravel 7.25.0, tomorrow. ;) |
Ha, talk about timing! This will come in really handy for something I’m currently building! |
Great job - I can see this being used a lot. |
I think every dev which uses components already has your own implementation of push once at this time. Almost all based on this sw https://stackoverflow.com/questions/38135455/how-to-have-one-time-push-in-laravel-blade |
I love this. I can also see the ability to use this like the |
Using the new [@once Blocks](laravel/framework#33812) currently fails, since the mandatory library for UUIDs is missing.
Using the new [@once Blocks](laravel/framework#33812) currently fails, since the mandatory library for UUIDs is missing.
Is the documentation updated already? |
@gauravmak no but feel free to send in a PR. Otherwise I'll try to do so when I'm back from vacation. |
I use |
@driesvints @gauravmak I just sent a PR on updating docs laravel/docs#6255 |
Using the new [@once Blocks](laravel/framework#33812) currently fails, since the mandatory library for UUIDs is missing.
Proof of concept for @JeffreyWay ...