preact-signals

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

Downloads
9.5K
Stars
65
Committers
4

Bot releases are visible (Hide)

preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • Updated dependencies [02878e1]
  • Updated dependencies [f40d84f]
  • Updated dependencies [b7f18de]
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • bd7e4f5: Improved implementation of $ macro. Added correcteness checks, custom Errors. Added experimental_stateMacros flag (draft - will be changed)
  • 19d63c9: - made macroses also a hooks
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 896d8d2: Bumped signals-core package
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • Updated dependencies [bd7e4f5]
  • Updated dependencies [19d63c9]
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • db33dd8: Changed untrackedPolyfill implementation
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 07796cb: Updated README
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 8 months ago

Patch Changes

  • b595046: Improved treeshacking by avoiding export *
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 8 months ago

Patch Changes

preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 8 months ago

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

  • a11836b: Added markdown docs
  • 8fee2c3: Added documentation about using HOCs with third party libraries
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 8 months ago

Patch Changes

  • Updated dependencies [a11836b]
  • Updated dependencies [8fee2c3]
  • Updated dependencies [a83109b]
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • 0419e8c: Decreased package size by optimizing wasm
  • d34885d: Fixed installation in runtimes without wasm support
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Minor Changes

  • e0d55b4: Added suspenseBehavior prop to more control on suspense queries #60
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • d9dca82: Fixes @preact-signals/utils deepSignal wrong types by adding @preact/signals-react as non optional peerDependency
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • 9b4a63f: Documented Next.js setup with @preact-signals/safe-react
  • Updated dependencies [1170fba]
preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

preact-signals - @preact-signals/[email protected]

Published by github-actions[bot] 9 months ago

Patch Changes

  • 1170fba: Fixed incorrect cjs output produced by rollup