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
Looking through the documentation I can't seem to find anything that would solve this issue so I figured I'd come here for some clarification. My use case is simple.
Given:
fetch('/artifact/:id', { params: { id: 1 } })
where 1 represents an Identifier but can change based on the interaction point, is there a way to setup a fetch mock that would be able to see that query param and respond with different data based on what that is set to.
No there isn't. I would accept a PR to implement it, though I'm not sure what the API should look like. Overloading the options object with a params property feels ok I guess
Looking through the documentation I can't seem to find anything that would solve this issue so I figured I'd come here for some clarification. My use case is simple.
Given:
fetch('/artifact/:id', { params: { id: 1 } })
where
1
represents an Identifier but can change based on the interaction point, is there a way to setup a fetch mock that would be able to see that query param and respond with different data based on what that is set to.i.e.
The text was updated successfully, but these errors were encountered: