Custom View path doesn't return params
to child components
#8583
tyteen4a03
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Payload v2, passing parameters to
path
in custom views (e.g./my-path/:id/test
) would pass theparams
as parsed by path-to-regexp to the child component. However, in v3 this was removed and even the example provided byCustomViewWithParam
refer to the param by the index in the segments, instead of the namedid
parameter, which isn't ideal.It would be great if this can be brought back.
Beta Was this translation helpful? Give feedback.
All reactions