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

Access the store from popup and options #258

Open
goldenlink opened this issue Sep 18, 2020 · 0 comments
Open

Access the store from popup and options #258

goldenlink opened this issue Sep 18, 2020 · 0 comments

Comments

@goldenlink
Copy link

Hi,
I have an extension where I want to access the data store from both options.js and popup.js.

In the background, I wrapStore(myStore). In both options and popup, I do create a store

const store = new Store();
store.ready().then(....)

It works in popup and options without trouble. But when I open options, and while the later is opened, open my popup, the popup fail to get access to the store.

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.%s the componentWillUnmount method in _temp (created by ConnectFunction) in ConnectFunction (created by _class)

How can I overcome this limitation ?

Thanks for your ideas.

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

No branches or pull requests

1 participant