585 search results for Turbo

Hey @Brandon! Hmm. Short answer: you can disable the turbo page cache. It's not a super important part of Turbo and it tends to be the toughest part to get right. Long answer: you said you're using `Tailwind Nav ...
weaverryan
weaverryan
Read Full Comment
In turbo 8 we also have "dynamic" for CSS, see https://github.com/hotwired/turbo/pull/1140 ...
Seems that prefetch now inside turbo 8. https://github.com/hotwired/turbo/pull/1101 ...
// ... lines 1 - 29
{% block remove %}
<turbo-stream action="remove" target="product-review-{{ id }}"></turbo-stream>
{% endblock %}
See Code Block in Script
12 lines | templates/product/reviews.stream.html.twig
// ... lines 1 - 6
<turbo-stream action="replace" target="product-{{ product.id }}-review-list">
<template>
{{ include('product/_reviews_list.html.twig') }}
</template>
</turbo-stream>
See Code Block in Script
35 lines | templates/product/_reviews.html.twig
<div {{ turbo_stream_listen('product-reviews') }}></div>
{{ include('product/_reviews_list.html.twig') }}
// ... lines 4 - 6
<turbo-frame id="product-reviews-form">
// ... lines 8 - 33
</turbo-frame>
See Code Block in Script
<turbo-stream action="update" target="product-quick-stats">
<template>
{{ include('product/_quickStats.html.twig') }}
</template>
</turbo-stream>
See Code Block in Script
26 lines | templates/_modal.html.twig
// ... lines 1 - 14
<turbo-frame
class="modal-body"
src="{{ modalSrc }}"
id="{{ id }}"
loading="lazy"
>
{{ modalContent|default('Loading...') }}
</turbo-frame>
// ... lines 23 - 26
See Code Block in Script
33 lines | templates/_modal.html.twig
// ... lines 1 - 14
<turbo-frame
class="modal-body"
src="{{ modalSrc }}"
id="{{ id }}"
>
{{ modalContent|default('Loading...') }}
</turbo-frame>
// ... lines 22 - 33
See Code Block in Script
32 lines | templates/_modal.html.twig
// ... lines 1 - 14
<turbo-frame
class="modal-body"
src="{{ modalSrc }}"
>
{{ modalContent|default('Loading...') }}
</turbo-frame>
// ... lines 21 - 32
See Code Block in Script
32 lines | templates/cart/cart.html.twig
// ... lines 1 - 11
<turbo-frame id="cart-sidebar" src="{{ path('_app_cart_product_featured') }}" target="_top">
Loading...
</turbo-frame>
// ... lines 15 - 32
See Code Block in Script
101 lines | templates/base.html.twig
// ... lines 1 - 87
{% block weather_widget %}
<turbo-frame id="weather_widget" src="{{ path('app_weather') }}" loading="lazy"></turbo-frame>
{% endblock %}
// ... lines 93 - 101
See Code Block in Script
101 lines | templates/base.html.twig
// ... lines 1 - 87
{% block weather_widget %}
<turbo-frame id="weather_widget" src="{{ path('app_weather') }}"></turbo-frame>
{% endblock %}
// ... lines 93 - 101
See Code Block in Script
{% block success_stream %}
<turbo-stream action="remove" target="voyage-list-item-{{ id }}"></turbo-stream>
{% endblock %}
See Code Block in Script
31 lines | templates/voyage/edit.html.twig
// ... lines 1 - 25
{% block stream_success %}
<turbo-stream action="update" target="modal">
// ... line 28
</turbo-stream>
{% endblock %}
See Code Block in Script
31 lines | templates/voyage/edit.html.twig
// ... lines 1 - 25
{% block stream_success %}
<turbo-stream action="update" target="modal">
<template></template>
</turbo-stream>
{% endblock %}
See Code Block in Script
<turbo-frame id="modal">
{% block body %}{% endblock %}
{{ include('_frameSuccessStreams.html.twig', { frame: 'modal' }) }}
</turbo-frame>
See Code Block in Script
34 lines | importmap.php
// ... lines 1 - 15
return [
// ... lines 17 - 29
'@hotwired/turbo' => [
'url' => 'https://cdn.jsdelivr.net/npm/@hotwired/turbo@7.3.0/+esm',
],
];
See Code Block in Script
Hey |mention:79070| The Symfony ux-turbo package is missing a dependency. I'm not sure if that bug is already fixed, you can try upgrading it `composer up symfony/ux-turbo`, or you can install the missing dep manually `composer require doctrine/common` - or, if you're not using turbo you can remove it Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
If anyone has issues getting the modal to close by adding `data-turbo-temporary`, check you came to the page via a Turbo navigation. If you've landed on the page without a Turbo transition then going back & forward again won't remove the dialog. This took me a while to work out. I hope I save someone the same. ...