Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Comment
  • Loading branch information
sebmarkbage committed Oct 18, 2022
commit ecdf734d1aa73d9f5f09f5a8e7fa5685f5f1bd29
8 changes: 4 additions & 4 deletions packages/react/src/ReactCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ function createCacheRoot<T>(): WeakMap<Function | Object, CacheNode<T>> {

function createCacheNode<T>(): CacheNode<T> {
return {
s: UNTERMINATED,
v: undefined,
o: null,
p: null,
s: UNTERMINATED, // status, represents whether the cached computation returned a value or threw an error
v: undefined, // value, either the cached result or an error, depending on s
o: null, // object cache, a WeakMap where non-primitive arguments are stored
p: null, // primitive cache, a regular Map where primitive arguments are stored.
};
}

Expand Down