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

[Bug]: Pathless route broke action [tutorial broken] #9523

Closed
webartoli opened this issue Oct 30, 2022 · 1 comment
Closed

[Bug]: Pathless route broke action [tutorial broken] #9523

webartoli opened this issue Oct 30, 2022 · 1 comment
Labels

Comments

@webartoli
Copy link

What version of React Router are you using?

6.4.2

Steps to Reproduce

⚠️ This issue affect the main tutorial ⚠️

User that gave React Router a shot are effected by this.

Following main tutorial all works well until Pathless Route.

Adding a pathless route as described, the New button no longer works.

Steps

  • Create a root path with an action
  • Add pathless children
  • trigger root action

Expected Behavior

parent action rootAction is detected via pathless routes.

In the tutorial, pressing new button the action is detected.

Actual Behavior

I got a console.warn message:

You're trying to submit to a route that does not have an action.  To fix this, please add an `action` function to the route for [/]

And an error response

ErrorResponse {
  status: 405, 
  statusText: 'Method Not Allowed', 
  data: 'No action found for [/]'
}
@webartoli webartoli added the bug label Oct 30, 2022
@timdorr
Copy link
Member

timdorr commented Oct 30, 2022

Duplicate of #9284

This will be fixed in 6.4.3.

@timdorr timdorr closed this as completed Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants