Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 18, 2022
1 parent 231b3f2 commit ecdf734
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit ecdf734

Please sign in to comment.