Skip to content

Can't import MeshProps as shown in readme #1172

Answered by drcmda
RWOverdijk asked this question in Q&A
Discussion options

You must be logged in to vote

three-types is new, three's dropped types. i've added a mention of this in the docs. as for jsx type, they must be missing from the main export? @joshuaellis

as for hmr, not sure, normally you must check refs in typescript since they can be null. i don't know exactly what hmr does to the component, i guess it invalidates all refs and the useframe goes out of sync one frame and catches back up. that would only happen on hot reload, not for prop updates and checking it will fix it. i can look into that if there's anything the reconciler does to help us detect hot reload.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@RWOverdijk
Comment options

@RWOverdijk
Comment options

Answer selected by RWOverdijk
Comment options

You must be logged in to vote
6 replies
@joshuaellis
Comment options

@drcmda
Comment options

@RWOverdijk
Comment options

@drcmda
Comment options

@RWOverdijk
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants