Open kiaking opened 2 weeks ago
Already added isFetchError
in #539 🫠should we export it form Api or Http?
Already added isFetchError in https://github.com/globalbrain/sefirot/pull/539 ðŸ«
That's my man 😄
should we export it form Api or Http?
Good point. Wasn't thinking about that. Hmmm I think it should be from Http...? Because the error is coming from Http and not from API 🤔 ...
When dealing with errors, it would be nice to have a function to assert the error is FetchError so that we can access underlining properties.
And, maybe we could have more powerful API too? Not sure.