• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mweststrate / immer
96%
master: 99%

Build:
Build:
LAST BUILD BRANCH: github-actions-ci
DEFAULT BRANCH: master
Repo Added 08 Jan 2018 08:16PM UTC
Files 17
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH hooks
branch: hooks
CHANGE BRANCH
x
Reset
  • hooks
  • 0.4.0
  • 1.0.0
  • aleclarson
  • async-recipes
  • ci
  • ci/test-nodejs-6-8-10-11
  • ci/use-yarn-cache
  • code-cleanup
  • curry
  • curry2
  • deep-freeze
  • dependabot/npm_and_yarn/handlebars-4.5.1
  • dependabot/npm_and_yarn/js-yaml-3.13.1
  • dependabot/npm_and_yarn/lodash-4.17.13
  • dependabot/npm_and_yarn/mixin-deep-1.3.2
  • docs
  • enable-codesandbox
  • es5-dts
  • factory
  • feature/curry
  • feature/fast-prune
  • feature/reuse
  • fix-362
  • fix-map-instantiation
  • fix/es5-array-delete-error
  • frozen-return
  • funding
  • github-actions-ci
  • immer3
  • immer3-v2
  • improved-types
  • isDraft
  • issue-100
  • issue-202
  • issue-233
  • issue-243
  • issue-264
  • issue-268
  • issue-270
  • issue-328
  • issue-381
  • jest24
  • kachkaev-add-failing-tests-for-recursive-use
  • map-fixes
  • master
  • new-immer-readme-image
  • next
  • nothing
  • patch-1
  • patch-2
  • patch-fixes
  • patch2
  • patches
  • perf3
  • produce-with-patches
  • promise
  • pull/351/head
  • seamless-immutable
  • sucrase
  • support_map_and_set
  • symbols
  • ts
  • ts-3.4
  • ts-3.4-inference-improvements
  • ts-jest
  • v0.3.0
  • v0.4.2
  • v0.5.0
  • v0.6.0
  • v0.8.2
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.10.3
  • v1.10.4
  • v1.10.5
  • v1.11.0
  • v1.11.1
  • v1.12.0
  • v1.12.1
  • v1.2.0
  • v1.4.0
  • v1.5.0
  • v1.7.0
  • v1.7.1
  • v1.7.3
  • v1.7.4
  • v1.8
  • v1.8.0
  • v1.8.0-alpha
  • v1.8.1
  • v1.8.2
  • v1.9
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v2
  • v2.0.0
  • v2.0.0-alpha
  • v2.1.0
  • v2.1.1
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.1.5
  • v2.2.0
  • v3.0.0
  • v3.1
  • v3.1.0
  • v3.1.1
  • v3.1.2
  • v3.1.3
  • v3.1.4
  • v3.2.0
  • v3.2.1
  • v3.3.0
  • v4
  • v4.0.0
  • v4.0.1
  • v4.0.2
  • v5.0.0
  • v5.0.1
  • v5.0.2
  • v5.1.0
  • v5.2.0
  • v5.2.1
  • v5.3.0
  • v5.3.1
  • v5.3.2
  • v5.3.3
  • visited

pending completion
542

Pull #259

travis-ci

web-flow
feat: add hooks to the `Immer` class

Hooks are passed as options to the Immer class.

onAssign(state, prop, value)
  Called for every property assigned to by a producer

onDelete(state, prop)
  Called for every property deleted by a producer

onCopy(state)
  Called whenever a copy becomes finalized

These hooks are passed an `ImmerState` object. (defined at the end of "src/index.d.ts")

The `state` is guaranteed to be both modified and finalized if ever passed to a hook.
Pull Request #259: feat: add hooks to the `Immer` class

265 of 283 branches covered (93.64%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 1 file covered. (100.0%)

279 of 286 relevant lines covered (97.55%)

1988.07 hits per line

Relevant lines Covered
Build:
Build:
286 RELEVANT LINES 279 COVERED LINES
1988.07 HITS PER LINE
Source Files on hooks
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
542 hooks feat: add hooks to the `Immer` class Hooks are passed as options to the Immer class. onAssign(state, prop, value) Called for every property assigned to by a producer onDelete(state, prop) Called for every property deleted by a producer onC... Pull #259 13 Dec 2018 02:50PM UTC web-flow travis-ci pending completion  
521 hooks feat: add hooks to the `Immer` class Hooks are passed as options to the Immer class. onAssign(state, prop, value) Called for every property assigned to by a producer onDelete(state, prop) Called for every property deleted by a producer onC... Pull #259 30 Nov 2018 10:50PM UTC web-flow travis-ci pending completion  
520 hooks feat: add hooks to the `Immer` class Hooks are passed as options to the Immer class. onAssign(state, prop, value) Called for every property assigned to by a producer onDelete(state, prop) Called for every property deleted by a producer onC... push 30 Nov 2018 10:50PM UTC aleclarson travis-ci pending completion  
See All Builds (1015)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc