Noah Dela Rosa
Noah Dela Rosa
For both React and Preact, the `useSignal` hook implementation is currently defined as: https://github.com/preactjs/signals/blob/ccb677bdb26ef836d3fac39d30d8f6371693e60f/packages/preact/src/index.ts#L334-L336 This implementation would cause the returned signal's `.value` to only be kept in sync with the...
The `effect` function signature is changed in order to more closely match the `useSignalEffect` signature, and also remove the ambiguity of the `unknown` typing. The `useSignalEffect` hook also now properly...
This PR modifies the type definitions to `Router` and `Link` in order to better represent their actual implmentations. The type definitions for the `Link` component in `preact-router` and `preact-router/match` have...
As discussed in #247, this PR introduces a new hook, `useWatcher`, which converts a non-signal value into a signal. ### Motivation Signals are a powerful primitive, but one main restriction...