Skip to content
Myr

Merge pull request #443 from Mudassar045/fix-grammatical-typos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fix grammatical errors and typos

authored by Michel Weststrate · committed by GitHub · parents 0a57561, 21e76c2 · Browse files · 5 files+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+7 added−7 removed

  • tests:+2 added−2 removed
  • other:+5 added−5 removed

5 files+7 added−7 removed

modified:__tests__/readme.js+2 added-2 removed
91 unmodified lines
92 tokenSet: new Set()93 }9495 const nextState = produce(state, draft => {96 draft.title = draft.title.toUpperCase() // let immer do it's job96 draft.title = draft.title.toUpperCase() // let immer do its job97 // don't use the operations onSet, as that mutates the instance!98 // draft.tokenSet.add("c1342")99100 // instead: clone the set (once!)
18 unmodified lines
119120 const nextState = produce(state, draft => {121 const newUsers = new Map(draft.users)122 // mutate the new map and set a _new_ user object123 // but leverage produce again to deeply update it's contents123 // but leverage produce again to deeply update its contents124 newUsers.set(125 "michel",126 produce(draft.users.get("michel"), draft => {127 draft.name = "michel"
78 unmodified lines
modified:_site/readme/index.html+1 added-1 removed
1116 unmodified lines
1117 to pass them to components, over the network etc... (And there is also the1118 upfront cost of converting data received from e.g. the server to immutable1119 JS)1120 </li>1121 <li>Generating patches doesn't significantly slow immer down</li>1121 <li>Generating patches doesn't significantly slow down immer</li>1122 <li>1123 The ES5 fallback implementation is roughly twice as slow as the proxy1124 implementation, in some cases worse.1125 </li>
65 unmodified lines
modified:docs/api.md+2 added-2 removed
modified:docs/performance.md+1 added-1 removed
modified:docs/support.md+1 added-1 removed