Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let ppl pass in their own fetch #31

Open
Dhaiwat10 opened this issue Dec 29, 2024 · 6 comments
Open

let ppl pass in their own fetch #31

Dhaiwat10 opened this issue Dec 29, 2024 · 6 comments

Comments

@Dhaiwat10
Copy link
Member

we use fetch to fetch verified assets

@askwhyharsh
Copy link
Contributor

could you explain? u mean the api url?

@Dhaiwat10
Copy link
Member Author

@askwhyharsh i mean letting people pass in their own instance of fetch - the fetching utility provided by node/browsers. @Nazeeh21 can chime in

@Nazeeh21
Copy link
Member

Hey @askwhyharsh, I am trying to build a raycast extension using the lib. While calling the function, I encountered this error.
image
Due to the way raycast works, it does not have fetch available globally. They have their own hook called useFetch. I have asked for their help in their slack to see if any alternative workaround exists, but it might get delayed due to the holidays.

@askwhyharsh
Copy link
Contributor

i see, how about axios @Nazeeh21 ? should i add both fetch and axios, by default use fetch, on fallback use axios? or by default use fetch unless mentioned otherwise. @Dhaiwat10

@askwhyharsh
Copy link
Contributor

also is fuel hiring interns 😄

@Dhaiwat10
Copy link
Member Author

@askwhyharsh you can let people pass in their choice of tool - be it axios or anything else. fetch should be the default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants