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] 6 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
Published by github-actions[bot] 7 months ago
SuspenseBehaviorProp
typePublished by github-actions[bot] 8 months ago
export *
Published by github-actions[bot] 8 months ago
Published by github-actions[bot] 8 months ago
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>
);
}
Published by github-actions[bot] 8 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
suspenseBehavior
prop to more control on suspense queries #60
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
@preact-signals/utils
deepSignal wrong types by adding @preact/signals-react
as non optional peerDependencyPublished by github-actions[bot] 9 months ago
@preact-signals/safe-react
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago