Project

General

Profile

Actions

Bug #23290

closed

React + Turbolinks integration break when submitting forms

Added by Avi Sharvit over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Fixed in Releases:
Found in Releases:

Description

In the react-engine, we listen to turbolinks to clean all the react components when moving between pages:
https://github.com/theforeman/foreman/blob/develop/webpack/assets/javascripts/react_app/common/MountingService.js#L15

When performing form-submit (edit host, save), the event isn't triggering and we got the same components mounted twice into the dom.

For example:
go to hosts > click edit > click submit > click the breadcrumb sibling selector and pick another host.
its lands in another_host/edit because it uses the breadcrumb-bar from the previews mounting.


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #24320: Unable to provision on Vmware, no storage data submittedClosedMarek HulánActions
Copied to Foreman - Bug #24345: Breadcrumbs isn't refreshed properly after visiting host edit formClosedMaria AgaphontzevActions
Actions

Also available in: Atom PDF