Describe the problem
We have our own api client. Not using remote functions.
The reason is caching, and calling our API inside a remote function would just add an extra network call to every api request.
But it's unclear how to throw a 404 inside our own client when a resource is not found.
So that SvelteKit knows to render the 404 page.
I did find a way to do this with remote functions.
But how can we do this using only "async svelte" and our own API client?
Describe the proposed solution
I can't find any docs on how to do this.
Would be nice if we had some docs on how to solve this problem.
Alternatives considered
No response
Importance
i cannot use SvelteKit without it
Additional Information
No response
Describe the problem
We have our own api client. Not using remote functions.
The reason is caching, and calling our API inside a remote function would just add an extra network call to every api request.
But it's unclear how to throw a 404 inside our own client when a resource is not found.
So that SvelteKit knows to render the 404 page.
I did find a way to do this with remote functions.
But how can we do this using only "async svelte" and our own API client?
Describe the proposed solution
I can't find any docs on how to do this.
Would be nice if we had some docs on how to solve this problem.
Alternatives considered
No response
Importance
i cannot use SvelteKit without it
Additional Information
No response