Skip to content

2.0.0 docs missing migration guide for ref changes #1630

Description

@mizulu

https://v2.solidjs.com/migration/from-solid-1

<div ref={()=>{
  console.log(getOwner()) // 1.x(true)   2.x(false)
 }}>
</div>

solid 1.x ref is owned ( https://s.olid.uk/id/qSQe8ZJ6QRyiJTtdfQDNrQ )
solid 2.x ref is non owned ( https://s.olid.uk/id/KyofyVLqQC2upVRrxbCTYw )

In 1.x we could register cleanup in the ref callback, but not in solid 2.x
no ownership is documented in the docs for 2.x . but the migration guide is not addressing it.

it should show the migration path for ref changes.

I assume that we now requires an higher order component wrapper

also what is the reason that ref has no owner?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions