seamapi / react

Seam Components are a set of white-labeled UI elements that can be added to your application in seconds. Use them in any app as native web components or as React components and hooks.
https://react.seam.co
MIT License
7 stars 2 forks source link

fix: Error when passing a Seam client to the SeamProvider #588

Closed codetheweb closed 9 months ago

codetheweb commented 9 months ago

The provider previously threw if you attempted to pass a client. Happy to add a test with some guidance, not entirely sure how to.

razor-x commented 9 months ago

Test is a good idea, but not blocking. Test naming / structure could mimic https://github.com/seamapi/javascript-http/blob/main/test/seam/connect/client.test.ts and https://github.com/seamapi/javascript-http/blob/main/test/seam/connect