Open
Description
This package doesn't work with single fetch yet.
It took some digging through closed issues and pull requests to figure that out! So I hope it's alright if I create an issue where we can subscribe for updates and share workarounds.
I ran into the same problem as #897. A resource route that uses redirect(…)
stopped working with single fetch, it hung on a visible "handling response" message.
@silintzir suggested a workaround in #897 (comment) that seems to work, here's our version of it:
export const headers: HeadersFunction = (args) => {
const mergedHeaders = new Headers();
for (const headers of Object.values(args)) {
for (const [key, value] of new Headers(headers).entries()) {
mergedHeaders.set(key, value);
}
}
return mergedHeaders;
};
Metadata
Assignees
Labels
No labels