Preact Signals: Supercharge your React/Preact development! Unleash the power of reactive programming with hooks, components, a TanStack query adapter, and more. Code smarter, not harder
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
.cjs
, .mjs
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
type-fest
as forward dependency. Fixes #67
Published by github-actions[bot] 9 months ago
type-fest
as forward dependency. Fixes #67
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
ce35a28: Implemented macros to simplify creation of ReactiveRef
-s
Without macros:
import { $ } from "@preact-signals/utils";
const a = $(() => 1);
With macros:
import { $ } from "@preact-signals/utils/macro";
const a = $(1);
More information about macros setup can be found in README
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 10 months ago
writableRefOfArrayProp
and writableRefOfObjectProp
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
@preact-signals/safe-react
because of incompatibility of directivesUncached
-> ReactiveRef
, WritableUncached
-> WritableReactiveRef
.Uncached
and WritableUncached
for backwards compatibility. Can be removed in next versionswritableRefOfObjectProp
and writableRefOfArrayProp
to create writable refs for object/array properties.@preact-signals/safe-react
.Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
75d8a9f: # Breaking Changes
This release changes opt-in and opt-out directives to be the same as in @preact/signals-react
.
@trackSignals
-> @useSignals
@noTrackSignals
-> @noUseSignals
To support new directives, you can just find and replace all instances of the old directives with the new ones.