Skip to content

🚀 Feature: Allow user-defined fetch function for web sdk #652

Closed
@SilverMira

Description

@SilverMira

🔖 Feature description

Currently, the web SDK is importing and using fetch from cross-fetch inside Client.call, is it possible to introduce a Client.setFetch(fetchFn) for users to provide the implementation to use?

I would be happy to create a PR for this feature

🎤 Pitch

When using appwrite with SvelteKit and SSR, there's a need to use SvelteKit's special fetch function on page load. This special fetch function provides additional functionalities as described here. One of them being ability of reusing what the server has fetched from appwrite instead of refetching them on the client during hydration.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions