I am using React
, Redux
, Redux Router
, and Redux Form
for a web application, and I would like to implement an "edit" form. The form lives under the URL /components/1/edit
.
When the form is successfully submitted I would like to redirect to /components/1
and display a toast with a confirmation message. I can get the redirect to work by hooking into react-form's props.submitSucceeded
and rendering a <Redirect/>
tag.
But I am not sure how to propagate the confirmation message so that it is displayed.
Ideally something like the React/Redux take on flash messages in Ruby on Rails.