Skip to content

Commit

Permalink
fix: Make props optional in rerender function returned from `render…
Browse files Browse the repository at this point in the history
…HookToSnapshotStream`
  • Loading branch information
jerelmiller committed Jan 13, 2025
1 parent b209c2e commit af16f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderHookToSnapshotStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function renderHookToSnapshotStream<ReturnValue, Props>(
renderOptions,
)

function rerender(rerenderCallbackProps: Props) {
function rerender(rerenderCallbackProps?: Props) {
return baseRerender(<HookComponent arg={rerenderCallbackProps} />)

Check failure on line 65 in src/renderHookToSnapshotStream.tsx

View workflow job for this annotation

GitHub Actions / pkg-pr-new Publish

Type 'Props | undefined' is not assignable to type 'Props'.

Check failure on line 65 in src/renderHookToSnapshotStream.tsx

View workflow job for this annotation

GitHub Actions / pkg-pr-new Publish

Type 'Props | undefined' is not assignable to type 'Props'.
}

Expand Down

0 comments on commit af16f41

Please sign in to comment.