You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to re-parent while keeping the object in the same position. This works as expected with the imperative approach (line 41). But if you comment that out and use the declarative approach, (uncomment line 42), the object does not keep its position.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@drcmda In this issue you suggest using a portal to re-parent objects...
#121
However it seems like something unexpected happens that is different from doing it imperatively. I have forked the example sandbox to illustrate....
https://codesandbox.io/s/three-fibre-userender-test-eul4l?file=/src/index.js
I'm trying to re-parent while keeping the object in the same position. This works as expected with the imperative approach (line 41). But if you comment that out and use the declarative approach, (uncomment line 42), the object does not keep its position.
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions