Skip to content

[Content]: Does not provide how to use a signal a the value of the context using TypeScript #810

Closed
@jmaister

Description

@jmaister

📚 Subject area/topic

/concepts/context.mdx

📋 Page(s) affected (or suggested, for new content)

Updating context values

📋 Description of content that is out-of-date or incorrect

I am trying to create context and sending a signal as value. Using the example from "Updating context values"
In the example, what should be the type used to create the context?
It can't be number as it is retunring an array with the value and functions.

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    solidRelated to core Solid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions