Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 831 Bytes

readme.md

File metadata and controls

36 lines (24 loc) · 831 Bytes

create-deep

createDeepSignal() and createDeepMemo() for SolidJS.

Gzipped Size Build Status

Install

npm install create-deep

API

dequal is used for the deep equality checks.

createDeepSignal<T>(value?: T)

function Component() {
    const [value, setValue] = createDeepSignal([1, 2, 3])
}

createDeepMemo<T>(() => T)

function Component() {
    const value = createDeepMemo(() => {
        return items().filter(item => item.size > 0)
    })
}