CatNoir
Explore posts from serversOverride component events
TLDR: I used
onContextMenu
in a lot of components. Is there anyway to override and apply custom logic to that event without changing much code?
On Chrome Mobile, the onContextMenu
event fires when you press and hold on an element. on Safari mobile, It doesn't work, so I have to apply custom logic. But currently I have a lot of components where I have already used onContextMenu
. Is there anyway to apply custom logic to onContextMenu
without changing much code?3 replies
How can I use a custom hook with createMemo in many places?
I have created a hook like this:
I then use this hook in multiple active rendering components. the createMemo is probably ran multiple times everytime the
useInMultiplePlaces
hook is ran in those components.
Is there anyway to like... have like a key for this memo, and reuse the same memo.. idk what im saying but i hope you understand my issue 😭26 replies
Best pattern when using createStore to store large amount of data for a large app?
As the title says, what is the best pattern, is there an example on github or something you could show? In react + mobx, I know this pretty nice pattern which looks really clean and been using. Is there something like this pattern or something better for createStore?
4 replies
How to change child child value?
https://stackblitz.com/edit/github-gp2gff?file=src%2FApp.tsx
I'm trying to make some kind of parser, but I don't know how to fix this problem. Any help?
37 replies