Skip to content

Commit

Permalink
patch: remove unused optional references from the state
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jun 13, 2021
1 parent 17677ec commit ba6c296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vest/src/core/produce/produce.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const cache = createCache(20);
* @returns Vest output object.
*/
const produce = isDraft => {
const { stateRef, optional } = context.use();
const { stateRef } = context.use();
const [testObjects] = useTestObjects();

const ctxRef = { stateRef, optional };
const ctxRef = { stateRef };

return cache(
[testObjects, isDraft],
Expand Down

0 comments on commit ba6c296

Please sign in to comment.