Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shorthands for common methods #315

Merged
merged 11 commits into from
Dec 15, 2023

Conversation

zerobias
Copy link
Member

Fix #309

@zerobias zerobias linked an issue Dec 14, 2023 that may be closed by this pull request
9 tasks
@zerobias zerobias marked this pull request as ready for review December 15, 2023 11:03
@zerobias zerobias merged commit 777a8e7 into release/v2.1 Dec 15, 2023
5 checks passed
@zerobias zerobias deleted the add-shorthands-for-common-methods branch December 15, 2023 11:23
zerobias added a commit that referenced this pull request Dec 15, 2023
* Update homepage in package.json and npm website

* Add previous method (#313)

* Add previousValue method

* Add support for undefined

* Add store validation

* Add type tests

* Add `previousValue` to documentation root

* Rename `previousValue` to `previous`

* Add shorthands for common methods (#315)

* Add `debounce(source, timeout)` shorthand

* Add `delay(source, timeout)`

* Add `throttle(source, timeout)` shorthand

* add `status(fx)` shorthand

* Add `pending(effects)` shorthand

* Add `inFlight(effects)` shorthand

* Add `combineEvents(events)` shorthand

* Add `spread(targets)` shorthand

* Add `time(clock)` shorthand

* Update sids in snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add shorthands for common cases
2 participants