Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

toUnSignal should handle UnComputed inputs to maintain reactivity #56

@coderabbitai

Description

@coderabbitai

Problem

Currently toUnSignal only detects isUnSignal and skips over UnComputed<T> values, meaning computed inputs in MaybeUnRef<T> fall through to the default case and lose reactivity.

Solution

Add a check for isUnComputed after the existing isUnSignal check to convert UnComputed inputs into live UnSignal wrappers.

Context

This issue was identified during the review of PR #55 (useToggle implementation) but is unrelated to that specific feature and affects the broader toUnSignal functionality.

Related:

Reported by: @Shinigami92

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions