Twitter | Search | |
This is the legacy version of twitter.com. We will be shutting it down on 15 December 2020. Please switch to a supported browser or device. You can see a list of supported browsers in our Help Center.
Viktor Hubert
1,477
Tweets
257
Following
91
Followers
Tweets
Viktor Hubert 22h
Replying to @Thunder_Owl @Der_Kevin
yeah I know, I simply sent a like because I couldn't come up with a witty response. XD
Reply Retweet Like
Viktor Hubert 22h
Replying to @Der_Kevin
online, no question
Reply Retweet Like
Viktor Hubert Nov 24
Replying to @TkDodo @oleg008 and 2 others
unless I'm mistaken the difference will be in the resolved type, which can be a MutableRefObject vs a simple RefObject, which I think it's independent from the type you pass in the generic. could be wrong ofc
Reply Retweet Like
Viktor Hubert Nov 24
Replying to @TkDodo @oleg008 and 2 others
I really feel this one. We had a similar situation where a response JSON parser reminded falsy values, and our apps relying on json keys started breaking. instead of duplicating three keys in the apps, we just tweaked the API to keep null values 🤷‍♂️
Reply Retweet Like
Viktor Hubert Nov 24
This one tweet made a couple things finally click for me, cheers 👌
Reply Retweet Like
Viktor Hubert Nov 24
Replying to @Infosec_Taylor
it's been a long time that a joke literally made me lol
Reply Retweet Like
Viktor Hubert Nov 21
Replying to @yoruba_dev
RPGMaker2000
Reply Retweet Like
Viktor Hubert Nov 20
Reply Retweet Like
Viktor Hubert Nov 19
Replying to @dabit3
No Kubernetes? :(
Reply Retweet Like
Viktor Hubert Nov 17
Replying to @swyx @reactjs
Cheers!
Reply Retweet Like
Viktor Hubert Nov 17
Replying to @reactjs @swyx
Can't wait!
Reply Retweet Like
Viktor Hubert Nov 17
Replying to @reactjs @swyx
Are there any good sources out there for library maintainers? I've seen people mention that they've made their libraries concurrent-mode ready, but not sure where I should catch up really.
Reply Retweet Like
Viktor Hubert Nov 15
Replying to @DasSurma
An other solution would be to use a WeakMap, but I worry that I would now trade memory usage increase in exchange for untested perceived performance gains. 🙄 Do you happen to know of a good way to benchmark this?
Reply Retweet Like
Viktor Hubert Nov 15
Replying to @DasSurma
Yeah wonder if worth the trouble for my library, . Not sure about a good solution to report back resize events to the right hooks. Someone recommended just adding an "onResize" on observed elements, but I rather not mutate DOM elements with such props.
Reply Retweet Like
Viktor Hubert Nov 15
What do you think about a hook providing a default callbackRef for convenience, and also accepting ref params? Also technically even if the hook provides the ref, you can use something like react-merge-refs if you need to.
Reply Retweet Like
Viktor Hubert Nov 15
Replying to @ZeeCoder
I couldn't find anything apart from this that seems to imply that using a single one is better?
Reply Retweet Like
Viktor Hubert Nov 15
Hey I'm not really sure where to ask / report this, but I've read an article you co-authored on resize observer here: I'm not sure if you happen to know whether it's best to use a single instance vs one per observed element?
Reply Retweet Like
Viktor Hubert Nov 15
Interesting. I'm assuming the idea here is also that this error should not happen in production, and is probably a case of incorrect usage of the hook.
Reply Retweet Like
Viktor Hubert Nov 14
This is actually really reassuring
Reply Retweet Like
Viktor Hubert Nov 14
Replying to @tottinge
I'm saving this
Reply Retweet Like