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.
1 parent 52d443d commit d03d3a6Copy full SHA for d03d3a6
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