Change Detection is not working properly when chrome.storage.sync uses
See original GitHub issueI am trying to create web extension using Angular 5.
I made array values and bind to it when getting the result from chrome.storage.sync on web extension.
after that, Change Detection is not properly working.
Do you have any solutions?
const test = [];
chrome.storage.sync.get('data', (items) => {
this.test = items.data;
});
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Chrome extension storage onChanged() not detecting ...
I've tried real hard to make storage listener to work: chrome.storage.onChanged.addListener(() => { console.log("tick"); });. with Manifest v3, ...
Read more >chrome.storage.sync.set doesnt fail properly when extension ...
Steps to reproduce the problem: 1. Make an extension's content script that calls chrome.storage.sync.set(value, callback) when a button is pressed.
Read more >Very weird problem here . Been banging my head for 2 days
My extension has similar issues sometimes, it seems that the sync store will return empty values until it is actually synced. Maybe it's...
Read more >chrome.storage - Chrome Developers
Use the chrome.storage API to store, retrieve, and track changes to user data. ... Local and sync storage areas should not store confidential...
Read more >browser.storage.onChanged doesn't appear to work on Safari
onChanged to detect when changes are made to browser.storage.local where I save all the preferences for my Safari Web Extension. This works on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@junimohano Please provide code of using
ngZone.run()
(your way) then.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.