Closed
Description
Take the following test:
const { takeSnapshot, getCurrentSnapshot, rerender } =
await renderHookToSnapshotStream(
() => {
return useLazyQuery(query, {
fetchPolicy: "cache-first",
variables: { id: "1" },
});
},
{
wrapper: ({ children }) => (
<ApolloProvider client={client}>{children}</ApolloProvider>
),
}
);
When I try to use rerender
, I get an error that an argument is required:
await rerender();
// ^ Expected 1 arguments, but got 0.
Ideally the argument is only required if the hook callback requires props.