Tyler Vipond
Tyler Vipond
Hey, thanks for your interest in this package! I was wondering, have you tried the instructions for patching fetch in node found here https://github.com/node-fetch/node-fetch#loading-and-configuring-the-module? I haven't tried it myself but...
This would also need to be patched onto `global` https://github.com/southpolesteve/node-abort-controller
It really depends, there's an open question here: If the user is using a browser should I force them to download packages to support node? If the user is using...
Alright I'll give this some thought. Out of curiosity, what context are you trying to use this in? (SSR, statically rendered?)
I'll work on this. In the meantime if this is urgent, could you try patching `fetch` and `AbortController` in node and let me know how it goes?
@aminya do you have a repo/branch I could take a look at? I'd like to see specifically how React is being used here. I suspect it might be more complex...
So, I made this earlier today to test with: https://github.com/tylervipond/use-as-bind-electron-example, it's built on https://github.com/electron-react-boilerplate/electron-react-boilerplate and fetch appears to be working without any additional work, perhaps it's being added somewhere. I'll...
@aminya I was able to get the hook working in both of the boilerplate projects listed, without the the need to add node-fetch. So I'm thinking there must be something...
@aminya hate to bug, any luck on this?
No worries 👍 and thanks!