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
Fo example there is some resource which endpoint depends on passed prop id:
endpoint: 'some/endpoint/:id/path'
This endpoint will work only once (when using prefetchResources for example), so that prop id will be passed to endpoint, but calling resource.fetch() will cause error, because id will be undefined.
Fix the logic of building endpoints so that component props will always be passed to it.
The text was updated successfully, but these errors were encountered:
Pareder
changed the title
Add posibility to pass function that receives component props to defaultParams
Pass component props to all resource methods
Mar 31, 2022
Fo example there is some resource which endpoint depends on passed prop
id
:This endpoint will work only once (when using
prefetchResources
for example), so that propid
will be passed to endpoint, but callingresource.fetch()
will cause error, becauseid
will be undefined.Fix the logic of building endpoints so that component props will always be passed to it.
The text was updated successfully, but these errors were encountered: