Fork me on GitHub
#clojurescript
<
2023-01-18
>
geraldodev09:01:13

if you like awesome free grids could you please thumb up https://github.com/KevinVandy/material-react-table/discussions/328

2
didibus04:01:20

You could cut the ticket to match-sorter-utils as well, seems they could fix it by wrapping their keys in double quotes

geraldodev15:01:38

I could. But they are not going to do. I've asked on tanstack discord.

wombawomba16:01:20

How can I monkeypatch a function in a JS object so that I can still call the 'original' function? I figured (let [f (.-f obj)] (set! (.-f obj) (fn [x] (prn "got" x) (f x)))) would work, but I'm getting Cannot read properties of null errors when calling (f x).

thheller16:01:08

could be that the function tries to use this? in that case try (fn [x] (this-as this (prn "got" x) (.call f this x))

👍 2
wombawomba16:01:27

@U05224H0W yes that's it – thanks!

👍 2