You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a fetcher to make a server request to a dynamic route, (e.g. /api/:param1/:param2 -> /api/abc/def).
Within the server action the params have the correct values:
param1=abc
param2=def
When there is an error (e.g. by cancelling the request) and I try to access the params within the handleError(error, {params}) function in entry.server.ts the second param has the wrong value:
I'm using React Router as a...
framework
Reproduction
I am using a fetcher to make a server request to a dynamic route, (e.g.
/api/:param1/:param2
->/api/abc/def
).Within the server action the params have the correct values:
When there is an error (e.g. by cancelling the request) and I try to access the params within the
handleError(error, {params})
function inentry.server.ts
the second param has the wrong value:System Info
Used Package Manager
npm
Expected Behavior
Dynamic path params receive the right values in the
handleError
function ofentry.server.ts
.Actual Behavior
When the route ends with a dynamic param the value of this param ends with
.data
.The text was updated successfully, but these errors were encountered: