by etaioinshrdlu · 6y ago · 0 comments
The stack traces are truly and utterly useless. One cannot see what triggered a rerender or other reactive action.
And a rerender can be triggered between two lines of synhronous code, magically, thanks to es6 proxies. What have I done???
All you need is a simple layer to make your typed api calls.
export const ApiService = {
return {
getSomeStuff: async () => ...,
postSomething: ...,
etc,
};
}