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

dialog not work with _index #10371

Open
zhuixinjian opened this issue Dec 27, 2024 · 1 comment
Open

dialog not work with _index #10371

zhuixinjian opened this issue Dec 27, 2024 · 1 comment

Comments

@zhuixinjian
Copy link

zhuixinjian commented Dec 27, 2024

Reproduction

posts.tsx -- layout
posts._index.tsx -- post list
posts.create.tsx -- create post

when i click button to create , url from /posts to /posts/create

the posts._index.tsx post list not show。

System Info

"@remix-run/node": "latest",
    "@remix-run/react": "latest",
    "@remix-run/serve": "latest",
    "@remix-run/server-runtime": "^2.15.1",

Used Package Manager

npm

Expected Behavior

the posts.index.tsx post list not show。

Actual Behavior

the posts.index.tsx post list not show。

@danielweinmann
Copy link
Contributor

@zhuixinjian, if you want to see the list while you're on the /posts/create route, you should render it on your post.tsx layout, not the posts._index.tsx route. Was that your issue?

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

No branches or pull requests

2 participants