mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Fix "primatives" typo in cache.md (#6335)
This commit is contained in:
@@ -414,7 +414,7 @@ See prior mentioned pitfalls
|
||||
|
||||
If none of the above apply, it may be a problem with how React checks if something exists in cache.
|
||||
|
||||
If your arguments are not [primatives](https://developer.mozilla.org/en-US/docs/Glossary/Primitive) (ex. objects, functions, arrays), ensure you're passing the same object reference.
|
||||
If your arguments are not [primitives](https://developer.mozilla.org/en-US/docs/Glossary/Primitive) (ex. objects, functions, arrays), ensure you're passing the same object reference.
|
||||
|
||||
When calling a memoized function, React will look up the input arguments to see if a result is already cached. React will use shallow equality of the arguments to determine if there is a cache hit.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user