Releases: XantreDev/preact-signals
Releases · XantreDev/preact-signals
@preact-signals/[email protected]
Patch Changes
- 896d8d2: Bumped signals-core package
@preact-signals/[email protected]
Patch Changes
- Updated dependencies [bd7e4f5]
- Updated dependencies [19d63c9]
- @preact-signals/[email protected]
@preact-signals/[email protected]
Patch Changes
- Updated dependencies [db33dd8]
- @preact-signals/[email protected]
@preact-signals/[email protected]
Patch Changes
- db33dd8: Changed untrackedPolyfill implementation
@preact-signals/[email protected]
Patch Changes
- 07796cb: Updated README
@preact-signals/[email protected]
Patch Changes
- 3524db0: Exports
SuspenseBehaviorProp
type - Updated dependencies [db33dd8]
- @preact-signals/[email protected]
- @preact-signals/[email protected]
@preact-signals/[email protected]
Patch Changes
- b595046: Improved treeshacking by avoiding
export *
@preact-signals/[email protected]
Patch Changes
- Updated dependencies [b595046]
- @preact-signals/[email protected]
@preact-signals/[email protected]
Minor Changes
-
a83109b: Added
@preact-signals/utils/integrations/reanimated
. It provides hooks to convert signals to Reanimated shared values.Example:
import { useSignal } from "@preact-signals/react"; import { useAnimatedSharedValueOfAccessor } from "@preact-signals/utils/integrations/reanimated"; import { useAnimatedStyle } from "react-native-reanimated"; const maxLength = 10; function ExampleComponent() { const input = useSignal(""); const progress = useAnimatedSharedValueOfAccessor( () => input.value.length / maxLength, { type: "spring", params: { damping: 10, }, }, ); return ( <View> <CustomInput value={input} onChangeText={(v) => (input.value = v)} /> <Animated.View style={useAnimatedStyle(() => ({ alignSelf: "stretch", backgroundColor: "blue", height: 10, transform: [{ scaleX: progress.value }], }))} /> </View> ); }
Patch Changes
@preact-signals/[email protected]
Patch Changes
- Updated dependencies [a11836b]
- Updated dependencies [8fee2c3]
- Updated dependencies [a83109b]
- @preact-signals/[email protected]