You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the react-wrapper doesn't allow to handle an error when calling load with an incorrect config.
If we do a init of a wrong config:
const chargebeeInstance = Chargebee.init({
site: "site-name2", // wrong site
domain: "https://mybilling.acme.com" // this is an optional parameter.
publishableKey: "test__"
})
and we want to instantiate a CardComponent
The CardComponent will still be created even with a wrong configuration
Proposal
To allow the client to handle the error properly. Maybe having an onError handle event and a fallback component to render a custom error component in the render
The text was updated successfully, but these errors were encountered:
doubleppereira
changed the title
Add handling to error on
Add handling on error when calling load('components')
Dec 28, 2020
doubleppereira
changed the title
Add handling on error when calling load('components')
Add error handler when calling load('components')
Dec 28, 2020
Problem
Currently the react-wrapper doesn't allow to handle an error when calling
load
with an incorrect config.If we do a init of a wrong config:
and we want to instantiate a CardComponent
The CardComponent will still be created even with a wrong configuration
Proposal
To allow the client to handle the error properly. Maybe having an
onError
handle event and a fallback component to render a custom error component in the renderThe text was updated successfully, but these errors were encountered: