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
Looks like Promise.reject does not seems to work.
I get this warning in the console when the service.fetchUserProfile(userId, referer) function returns promise rejection
@yharish991 you need to .catch() that rejected promise during the fallback event. A trivial example is here. The warning is not fatal, but will always occur unless the fallback's rejected promise is handled during the fallback event.
In your case, just add a fallback event handler that deals with rejected promises.
@yharish991 I have applied a fix that allows you to handle the promise rejection on fallback directly from breaker.fire() instead of only within the fallback event. This will land in the next release, which should be available soon.
Can i do something like this ?
Looks like Promise.reject does not seems to work.
I get this warning in the console when the
service.fetchUserProfile(userId, referer)
function returns promise rejectionThe text was updated successfully, but these errors were encountered: