react-share icon indicating copy to clipboard operation
react-share copied to clipboard

BeforeOnClick not working when invalid url is provided as prop

Open FrancoisCoding opened this issue 4 years ago • 2 comments

Currently i have a function that runs before sharing to receive a link to provide as a url prop. This was working before but recently the beforeOnClick function simply does not run at all when the url prop is invalid.

Expected: User clicks on share. beforeOnClick is fired to receive link. Url link is updated and post is shared.

Result: User clicks on share. Error is received. Uncaught (in promise) AssertionError: [platform].url at new AssertionError

FrancoisCoding avatar May 25 '21 17:05 FrancoisCoding

I think It's related to Facebook API, you can only use URLs that are owned., the react-share library has nothing to do with it.

WerdienJihed avatar May 31 '21 21:05 WerdienJihed