Twitter | Search | |
Paul Henschel
4,533
Tweets
497
Following
12,413
Followers
Tweets
Paul Henschel 12h
Replying to @ariaminaei
had an interesting talk with about how sharing is fundamental to react. you have a market that's mostly reserved to a small group of experts that won't normally share, and you force it open with good, accessible tools so everyone gets to participate, things change.
Reply Retweet Like
Paul Henschel 12h
this writeup is a good place to start to learn how to make interactive games in react with unity principles.
Reply Retweet Like
Paul Henschel 15h
Replying to @LSA232
in three objects that support cast must have a raycast prototype method, meshes and lines do. that's what i meant. here's a larger discussion around the subject:
Reply Retweet Like
Paul Henschel Oct 21
Replying to @0xca0a
in previous versions event order was random. by the time you hover something, previous object could've already overwritten state. i don't think there's a concept for this in plain threejs, there are no events, bubbling, stopPropagation, groups. it brings us closer to dom parity.
Reply Retweet Like
Paul Henschel Oct 21
r3f 5.1.3: break-through for event-order. in the dom cursor goes over A, then B, order will be: A:over, A:out, B:over. it allows you to change cursor deterministically. it was a nightmare to implement this in r3f with bubbling, group events and stopPropagation, but finally works!
Reply Retweet Like
Paul Henschel Oct 21
thats why i love plain javascript 😇 it makes it possible to butcher things nothing else could
Reply Retweet Like
Paul Henschel retweeted
CodeSandbox Oct 21
When CodeSandbox launched we wanted to make getting started with a new web app possible with just one click. Today, we'd like to thank you all for creating 10M sandboxes 📦✨ 🙌🏽
Reply Retweet Like
Paul Henschel Oct 21
Replying to @Chase_Davis_ @descioli
this is dev-mode react. in prod this will all be obfuscated. similar to twitter. if you open devtools you see react nodes, but all contextual info is gone. i guess there must also be a way to switch it off completely.
Reply Retweet Like
Paul Henschel Oct 21
are you sure? can you really detect names in functional components? const [foo] = useState(0) should that really be listed as "foo" in devtools? it would be incredible of course. will make a more reduced example and file a bug.
Reply Retweet Like
Paul Henschel Oct 21
Replying to @brian_d_vaughn
thanks to for the awesome work on this!
Reply Retweet Like
Paul Henschel Oct 21
Replying to @0xca0a
with a little more work on this (for instance somehow making click to highlight-in-graph work), this could be a neat replacement for the threejs editor, but here it's available right in your project without any further change.
Reply Retweet Like
Paul Henschel Oct 21
new react devtools (4.9.0) are amazing! check the original tweet with an example for list state changes, which will be super useful. published a new r3f minor for this with an updated reconciler. DX will be way more comfortable now.
Reply Retweet Like
Paul Henschel Oct 21
it's fixed! updated came today! one more thing i notice, it doesn't display named state in fn components. it only has base-state and memoized-state. is this correct? if i try to add something to it nothing happens. it is not evident to me which i should alter, base or memo.
Reply Retweet Like
Paul Henschel Oct 21
Replying to @simonghales
wow, that will be fun! keep these updates coming pls! 🙂
Reply Retweet Like
Paul Henschel Oct 21
Replying to @ggsimm @hmans
i swear there must be some sort of competition between you people who's making code look the most verbose wins a cake
Reply Retweet Like
Paul Henschel Oct 21
Replying to @ggsimm @hmans
thats your definition of fun you monster, that's 10 lines alone!!!!1
Reply Retweet Like
Paul Henschel Oct 21
Replying to @simonghales
you're making progress fast, looking great! does it have a story yet or a goal?
Reply Retweet Like
Paul Henschel Oct 21
Replying to @brian_d_vaughn
r3f 5.1.0 it uses react-reconciler 0.26.0 which should be latest. it seems chrome devtools is still 4.8.2 (does that self-update).
Reply Retweet Like
Paul Henschel Oct 20
Replying to @brian_d_vaughn
brian, do you know why it can't alter native element props in r3f? here's an example csb (react-17, createRoot): . switch on host elements and try to set the pointlights color for instance. it can set regular component props fine.
Reply Retweet Like
Paul Henschel Oct 20
Replying to @ggsimm @nullhook and 2 others
is there a difference to this ? limitation etc
Reply Retweet Like