You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming there is a page with an anchor that links to "/page" and the /page action redirects to "/main" where we have a response of .html.erb as such: Frame here:
Expected behavior: On clicking the link to /page, main.html.erb should be loaded and since the response has a turbo frame, "/test/frame" should be called once to load the data for the frame
Closes [hotwired#526][]
Prevent naming collisions between the new `Turbo.fetch` function and the
built-in `window.fetch` function.
To do so, create a module-local reference to `window.fetch`, and define
the exported function as `fetchWithTurboHeaders`. At export-time, rename
to `fetch` so that consumers can continue to import it as `Turbo.fetch`.
[hotwired#526]: hotwired/turbo-rails#526
Using turbo-rails with turbo-frame :
Assuming there is a page with an anchor that links to "/page" and the /page action redirects to "/main" where we have a response of .html.erb as such: Frame here:
Expected behavior: On clicking the link to /page, main.html.erb should be loaded and since the response has a turbo frame, "/test/frame" should be called once to load the data for the frame
Actual behavior: "/test/frame" is called twice.
Can be replicated on: https://github.com/karthikkasturi/turbo-frame-loads-twice-on-redirect
The text was updated successfully, but these errors were encountered: