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

Create URL before share #216

Open
hieptn94 opened this issue Feb 28, 2019 · 2 comments · May be fixed by #336
Open

Create URL before share #216

hieptn94 opened this issue Feb 28, 2019 · 2 comments · May be fixed by #336

Comments

@hieptn94
Copy link

I need to get a token from the server and then append to the url to share. I tried with the beforeClick but it not working.
I get the token in the beforeClick and set url state with new url and return a Promise. But the share window is opened with old url.
Please help me on this issue. Thanks.

@kasturisameer
Copy link

Even I'm facing the same issue.
I'm getting the URL and saving in state using beforeClick.. But it is taking the old state URL

@Kashuab
Copy link

Kashuab commented Jul 23, 2020

I've implemented this in #336 by accepting an async function as the url prop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants