Skip to content

Commit

Permalink
Builds can have stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Jan 24, 2024
1 parent 99922b8 commit fb89dae
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,15 @@ describe('Shared useSyncExternalStore behavior (shim and built-in)', () => {
);
}).toErrorDev(
'The result of getSnapshot should be cached to avoid an infinite loop',
// Stacks don't work when mixing the source and the npm package.
{withoutStack: gate(flags => flags.enableUseSyncExternalStoreShim)},
{
withoutStack: gate(flags => {
if (flags.enableUseSyncExternalStoreShim) {
// Stacks don't work when mixing the source and the npm package.
return flags.source;
}
return false;
}),
},
);
});

Expand Down

0 comments on commit fb89dae

Please sign in to comment.