Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Routing Breaks on Page Refresh #1350

Open
RailsCod3rFuture opened this issue Dec 4, 2024 · 0 comments
Open

React Routing Breaks on Page Refresh #1350

RailsCod3rFuture opened this issue Dec 4, 2024 · 0 comments

Comments

@RailsCod3rFuture
Copy link

RailsCod3rFuture commented Dec 4, 2024

Steps to reproduce

  1. create a rails 7.1 application
  2. setup an index action with a react component
  3. setup a react router configuration
  4. refresh the page and you'll get a missing template action on any other path other than the index path.
    (Guidelines for creating a bug report are available
    here
    )

Expected behavior

Tell us what should happen
The react router should function in a way where the routing goes back to the react component for all other endpoints in the routing schema as well

Actual behavior

Tell us what happens instead
when you refresh on a routed action - rails 7 complains that the view for the action is missing

System configuration

  • Shakapacker or Sprockets version:
    8.0.2
  • React-Rails version:
    -3.2.1
  • Rect_UJS version:
  • 3.2.1
  • Rails version:
  • 7.1.3.2
  • Ruby version:
    3.2.4

In our rails 6 applications - react-router sends the user back to the route within the react component, but now its treating the route as a rails transaction
(Describe your issue here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant