Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle errors gracefully if Provider does not implement functions #322

Open
friedger opened this issue May 23, 2023 · 1 comment
Open

Handle errors gracefully if Provider does not implement functions #322

friedger opened this issue May 23, 2023 · 1 comment
Assignees

Comments

@friedger
Copy link
Contributor

Currently, Xverse does not support profileUpdateRequest

Developers need to manually check for feature like this

    const provider = getStacksProvider();
    if (provider.profileUpdateRequest) {
...
@janniks
Copy link
Collaborator

janniks commented Jul 24, 2023

connect could check before calling a function. Right now we only have onCancel which could be used, or throw an error (not sure how graceful that is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants