682 search results

Hey |mention:78384| You should be able to run Turbo without Stimulus, they aren't dependent on each other. If you load a Stimulus controller does Turbo starts working? Do you see any errors in the browser's console? Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey |mention:76903| Are you trying to use Turbo with EasyAdmin? I'm afraid EasyAdmin has not added support for Turbo yet, perhaps they will in the future. Cheers!
MolloKhan
MolloKhan
Read Full Comment
…pointer. To disable InstantClick globally by adding `` to your `` , but then you cannot enable prefetch at all. Instead, you can add `data-turbo-prefetch="false"` to your `` tag and then you can enable prefetch (as shown in this video) on a link-by-link basis.
<turbo-frame id="modal">
{% block body %}{% endblock %}
</turbo-frame>
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
I'm seeing an error with the adding of the `turbo:before-cache@window->modal#close` action. This is what I see in the console… ``` Error invoking action "turbo:before-cache@window->modal#close" Error: Missing target element "dialog" for "modal" controller get https…
34 lines | templates/_flashes.html.twig
{% for message in app.flashes('success') %}
<div
// ... lines 3 - 4
data-turbo-temporary
// ... lines 6 - 7
>
// ... lines 9 - 31
</div>
{% endfor %}
See Code Block in Script
11 lines | templates/planet/_card.html.twig
<turbo-frame id="planet-card-{{ planet.id }}">
// ... lines 2 - 9
</turbo-frame>
See Code Block in Script
I'm wondering if the combo symfony/stimulus/turbo avoids some SEO problems that we get while using a framework like React with its client side rendering first nature ?
Anthony-E
Anthony-E
Read Full Comment
…error after adding the `turbo_stream_listen` twig function: > An exception has been thrown during the rendering of a template ("The Turbo stream transport "default" doesn't exist."). which is coming from [this](https://github.com/symfony/ux-turbo/blob/8cb9d59452e0e8d59c7bfb3634ee2665926f3440/src/Twig/TwigExtension…
Ohh, you're using Turbo. Sometimes Turbo does unexpected things. I believe the error is because you're not returning the exact HTTP error code that Turbo requires. Try setting the response status code to "422" or, if you're using the Symfony Form component…
MolloKhan
MolloKhan
Read Full Comment
One more thing -- if you DO decide to hook into `turbo:before-render` just know there's a really high if not certain chance that you'll break the back button and maybe even the forward button (haven't tested that). To deal with this…
For people using a more recent version of Turbo (in my case 7.2.4) there's no error in the console, but the page redirects to the /cart/_featured page instead.
54 lines | templates/vinyl/browse.html.twig
// ... lines 1 - 27
<turbo-frame id="mix-browse-list-{{ pager.currentPage }}">
// ... lines 29 - 49
</turbo-frame>
// ... lines 51 - 54
See Code Block in Script
Hey the team, How you would set up the use of turbo-frame on an article detail page with comments ? We could have a turbo-frame for displaying and adding comments in a method. But how to retrieve the information related to the article in…
Hey, I have an error when I try to use turbo-frame and nothing appear. In console, there is error 500. When I look network view, there is symfony exception : ` Symfony\Component\Form\FormRenderer::renderBlock(): Argument #1 ($view) must be of type Symfony\Component\Form…
// ... lines 1 - 29
{% block remove %}
<turbo-stream action="remove" target="product-review-{{ id }}"></turbo-stream>
{% endblock %}
See Code Block in Script
46 lines | templates/product/_reviews.html.twig
// ... lines 1 - 2
<turbo-frame id="product-{{ product.id }}-review">
// ... lines 4 - 13
</turbo-frame>
<hr>
<turbo-frame id="product-reviews-form">
// ... lines 19 - 44
</turbo-frame>
See Code Block in Script
<turbo-frame
id="add-to-cart-controls"
data-turbo-form-redirect="true"
>
// ... lines 5 - 46
</turbo-frame>
See Code Block in Script
// ... lines 1 - 4
export default class extends Controller {
// ... lines 6 - 8
connect() {
document.addEventListener('turbo:before-fetch-response', (event) => {
if (!this.modal || !this.modal._isShown) {
return;
}
const fetchResponse = event.detail.fetchResponse;
if (fetchResponse.succeeded && fetchResponse.redirected) {
event.preventDefault();
Turbo.visit(fetchResponse.location);
}
});
}
// ... lines 23 - 27
See Code Block in Script