From 7aa385c56d9ba11acdb3e8433596f045916ff59c Mon Sep 17 00:00:00 2001 From: Kevin Baragona Date: Tue, 20 Oct 2020 21:02:15 -0700 Subject: [PATCH] docs(general): fix spelling errors --- README.md | 6 +++--- src/view.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c1ece1a..6d6ad12 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ person.name = 'Ann'; export default person; ``` -The first example wouldn't trigger re-renders on the `person.name = 'Ann'` mutation, because it is targeted at the raw object. Mutating the raw - none `store`-wrapped object - won't schedule renders. +The first example wouldn't trigger re-renders on the `person.name = 'Ann'` mutation, because it is targeted at the raw object. Mutating the raw - non-`store`-wrapped object - won't schedule renders.

@@ -692,10 +692,10 @@ export default view(() => { ```
-Explicitly pass none reactive dependencies - like vanillas props and state - to local auto effects in function components. +Explicitly pass non-reactive dependencies - like vanillas props and state - to local auto effects in function components.

-Because of the design of React hooks you have to explicitly pass all none reactive data to a hook-like dependency array. This makes sure that the effect also runs when the none reactive data changes. +Because of the design of React hooks you have to explicitly pass all non-reactive data to a hook-like dependency array. This makes sure that the effect also runs when the non-reactive data changes. ```jsx import React from 'react' diff --git a/src/view.js b/src/view.js index 9739ef1..61b7952 100644 --- a/src/view.js +++ b/src/view.js @@ -14,8 +14,8 @@ export let isInsideFunctionComponentWithoutHooks = false; const COMPONENT = Symbol('owner component'); function mapStateToStores(state) { - // find store properties and map them to their none observable raw value - // to do not trigger none static this.setState calls + // find store properties and map them to their non-observable raw value + // to do not trigger non-static this.setState calls // from the static getDerivedStateFromProps lifecycle method const component = state[COMPONENT]; return Object.keys(component)