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
In #75 we added support to change the init value of fetch when using run with useFetch. Unfortunately the url prop cannot be overruled this way because it's not part of the init object (and can't be).
I think the pragmatic approach here is to support a resource prop on run's init object, use that if present and omit it from the actual object we pass to fetch. Alternatively we can add support for a resource argument to run. I'd prefer that to be the first argument, but it would be a breaking change.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
In #75 we added support to change the
init
value offetch
when usingrun
withuseFetch
. Unfortunately theurl
prop cannot be overruled this way because it's not part of theinit
object (and can't be).I think the pragmatic approach here is to support a
resource
prop onrun
'sinit
object, use that if present and omit it from the actual object we pass tofetch
. Alternatively we can add support for aresource
argument torun
. I'd prefer that to be the first argument, but it would be a breaking change.The text was updated successfully, but these errors were encountered: