We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52d443d + d03d3a6 commit d39a2d7Copy full SHA for d39a2d7
src/lib/seam/SeamProvider.tsx
@@ -203,10 +203,10 @@ const isSeamProviderPropsWithClient = (
203
): props is SeamProviderPropsWithClient => {
204
if (!('client' in props)) return false
205
206
- const { client } = props
+ const { client, ...otherProps } = props
207
if (client == null) return false
208
209
- const otherNonNullProps = Object.values(props).filter((v) => v != null)
+ const otherNonNullProps = Object.values(otherProps).filter((v) => v != null)
210
if (otherNonNullProps.length > 0) {
211
throw new InvalidSeamProviderProps(
212
`The client prop cannot be used with ${otherNonNullProps.join(' or ')}.`
0 commit comments