Skip to content

Commit

Permalink
Merge params to the reloadParams.
Browse files Browse the repository at this point in the history
  • Loading branch information
HichemTab-tech committed Oct 26, 2024
1 parent 517441a commit e0f9a6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/src/WhenVisible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const WhenVisible = ({ children, data, params, buffer, as, always, fallback }: W
if (data) {
return {
only: (Array.isArray(data) ? data : [data]) as string[],
data: {
...(params?.data??{})
}
...params
}
}

Expand Down

0 comments on commit e0f9a6f

Please sign in to comment.