Skip to content

createDeepSignal() and createDeepMemo() for SolidJS.

License

Notifications You must be signed in to change notification settings

astoilkov/create-deep

Repository files navigation

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)
    })
}

About

createDeepSignal() and createDeepMemo() for SolidJS.

Resources

License

Stars

Watchers

Forks

Sponsor this project