Describe the bug
A component function owner is different between a dev and prod build
function MyComponent(){
getOwner() // <-- this is different between prod/dev builds.
// in prod the owner is of the parent, in dev it is a new owner scope.
return <></>
}
this inconsistency causes unexpected behavior, for example when using solid's onCleanup primitive
dev build playground

production build playground

note: production build is working as designed, it is dev that alters the expectations
Your Example Website or App
.
Steps to Reproduce the Bug or Issue
see playground links for the difference between dev and prod
Expected behavior
it is expected that dev and prod will work similarly, in regard to owner scopes.
Screenshots or Videos
No response
Platform
.
Additional context
No response
related discussion of the issue
https://discord.com/channels/722131463138705510/1075879661134942238
Describe the bug
A component function owner is different between a dev and prod build
this inconsistency causes unexpected behavior, for example when using solid's
onCleanupprimitivedev build playground

production build playground
note: production build is working as designed, it is dev that alters the expectations
Your Example Website or App
.
Steps to Reproduce the Bug or Issue
see playground links for the difference between dev and prod
Expected behavior
it is expected that dev and prod will work similarly, in regard to owner scopes.
Screenshots or Videos
No response
Platform
.
Additional context
No response
related discussion of the issue
https://discord.com/channels/722131463138705510/1075879661134942238