question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change Detection is not working properly when chrome.storage.sync uses

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
trotylcommented, Mar 8, 2018

@junimohano Please provide code of using ngZone.run() (your way) then.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 13, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found