How is Suspense supposed to be formatted? #2065
Unanswered
interpolack
asked this question in
Q&A
Replies: 1 comment 1 reply
-
im not sure what you mean tbh, pointers have nothing to do with events nor should they influence them. suspense allows you to orchestrate async components, you define loading boundaries. the way you treat events there looks odd to me.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
When I enclose multiple objects inside of the same
Suspense
wrapper, then their pointer events all fire at the wrong times. But if I enclose each object in its ownSuspense
wrapper, then some of them fail to load.Which is correct: one
Suspense
wrapper or many? How to ensure that objects appear when using many?Pattern one: same
Suspense
wrapperProblem: the wrong
onPointerOver
events fire; sometimes all of them fire at onceTherefore, when the state changes, all of these components re-render. I think this may be causing all of the
onPointerOver
events to fire at once.Pattern 2: Each object in a different
Suspense
wrapperProblem: some objects fail to appear
Do I need a different
fallback
function?Beta Was this translation helpful? Give feedback.
All reactions