-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
Describe the feature
I naively used URLSearchParams
in order to prepare the parameters I want to send along the request, however those are not read if I use an interceptor later on.
const $fetch = ofetch.create({
baseURL: this.baseUrl,
onRequest: ({ options }) => {
options.query ||= new URLSearchParams();
options.query.set('token', this.token);
}
});
const query = new URLSearchParams({
title,
});
$fetch(url, { query })
Is it something unwanted, or is a contribution welcome for this one ?
Additional information
- Would you be willing to help implement this feature?To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
ThomasPoissonDecathlon, reslear, pi0, bgondy and evgenii-code
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
reslear commentedon Jul 22, 2024
need add to end: