wrapping a generic function in typescript
i'm trying to write a wrapper to automatically handle loading state when necessary. my idea is to wrap my function definitions in this function
something is off (likely function parameters), and it seems like my function might be getting run twice. any help is appreciated.
busyable which then returns a function that precedes and succeeds the callback passed in by toggling busy state. something like this: something is off (likely function parameters), and it seems like my function might be getting run twice. any help is appreciated.
