Skip to content

Superficial docs for createRoot #393

Open
@GiyoMoon

Description

@GiyoMoon
Contributor

The docs for createRoot lack some important information.

  • Creating a root owner without accepting the dispose function in the callback creates an unowned root
  • What are the differences between an owned and unowned root? (or link to a page mentioning this, if it's explained somewhere else)
  • What is the detachedOwner property for? While there are typescript docs for it, it would still be very helpful to have some examples. It's currently not even mentioned in the docs.

This also applies to solidjs.com/docs.
Link to the current docs: https://docs.solidjs.com/references/api-reference/reactive-utilities/createRoot

Activity

titoBouzout

titoBouzout commented on Feb 21, 2024

@titoBouzout
Collaborator

If you know the answer to these questions a PR for this file would be welcome https://github.com/solidjs/solid-docs-next/blob/main/src/routes/reference/reactive-utilities/create-root.mdx

added a commit that references this issue on Aug 16, 2024
amirhhashemi

amirhhashemi commented on Apr 27, 2025

@amirhhashemi
Collaborator

I asked these questions on Discord and received good responses. I will move them to the documentation.

self-assigned this
on Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedLooking for assistance on this issuein progressSomeone is currently working on the issue.solidRelated to core Solid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @titoBouzout@GiyoMoon@amirhhashemi@LadyBluenotes

      Issue actions

        Superficial docs for createRoot · Issue #393 · solidjs/solid-docs