- Oct 2024
-
developer.mozilla.org developer.mozilla.org
-
can't be represented exactly by a float
This is saying why
(2.55).toFixed(1)
evaluates to 2.5, cuz, internally, 2.55 is actually, 2.5499999999..., which evals to 2.5 indeed.
-
- Jul 2024
-
react.dev react.dev
-
After your component is removed from the DOM, React will run your cleanup function
- the 'cleanup function' is the return of
setup
. - 'cleanup函数'是setup返回的。
- the 'cleanup function' is the return of
-
- Jun 2024
-
react.dev react.dev
-
cause the chat to re-connect every time the component re-renders
because, before, it was depending on only 'roomId' and 'serverUrl', if they didn't change, it will not re-connect. but now, when 'onReceiveMessage' function is included in the dependency array, it will re-connect when re-rendered, because it's a new function every time.
Tags
Annotators
URL
-
- May 2024
-
www.digitalocean.com www.digitalocean.com
-
or
possible typo: 'or' should be 'of'.
-
-
oauth.net oauth.net
-
read
"read" here means decode it to inspect its content.
-
-
developer.okta.com developer.okta.com
-
automatically calls
wow. so if the
grantType
is authorization code flow type, thisparseFromUrl()
function actually automatically does an entire extra step which is the POST to get the token. -
same channel
here's the key difference to implicit flow. the token and other info properties are return as the response of the POST request.
-
which malicious browser extensions would not have access to
according to the next paragraph, at least in this example case of okta, we don't need manual access to the random secret generated by frontend code.
-
-
redux-toolkit.js.org redux-toolkit.js.org
-
match
- types of these fields must also match, e.g., it will be removed if you provide a
number
to thecode
field. - 这些属性的类型也必须匹配,如果你给的
code
是一个number
类型,它也会被筛掉。
@github.com/mj2068
- types of these fields must also match, e.g., it will be removed if you provide a
-
-
-
But, we can also make immutable copies like before if we want to
- so, because of
Immer
, we can 'mutate' states directly. but we can also return state as well. - 有了Immer,可以直接在reducer里改state,也可以return state。
- so, because of
-
-
redux-toolkit.js.org redux-toolkit.js.org
-
to respond and update its own state in response to other action types besides the types it has generated
- this is why
extraReducers
exists. - 为什么
extraReducers
存在的原因。
- this is why
-