Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Fix clearAll(useWebKit = true) #150

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mattvick
Copy link

@mattvick mattvick commented Jul 3, 2019

Fixes #127

[[WKWebsiteDataStore defaultDataStore] removeDataOfTypes:websiteDataTypes
modifiedSince:dateFrom
completionHandler:^{}];
resolve(nil);
Copy link

@tyleralves tyleralves Jul 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to put resolve(nil) within the completion handler of WKWebsiteDataStore::defaultDataStore so that it doesn't resolve prior to the cookies being deleted?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Implemented in c0bfc05.

@tyleralves
Copy link

FWIW, I made a patch for our local copy. Seems like this repo isn't actively maintained.

@safaiyeh
Copy link

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear not working webkit
3 participants