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

fix(highlights): Ensure that Highlights are refreshed on init. #3451

Merged
merged 1 commit into from Sep 13, 2017

Conversation

AdamHillier
Copy link
Contributor

@AdamHillier AdamHillier commented Sep 13, 2017

Closes #3410. And fix #3411 too.

// We need TopSites to have been initialised for deduping
if (!this.store.getState().TopSites.initialized) {
await new Promise(resolve => {
const unsubscribe = this.store.subscribe(async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this async required since there are no awaits inside? I am still an async/await newb so I'm not sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah no it's not that's a good point, cheers

Copy link
Contributor

@rlr rlr left a comment

Choose a reason for hiding this comment

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

cool. lgtm. r+ with the async fix

@as-pine-proxy
Copy link
Collaborator

@Mardak
Copy link
Member

Mardak commented Sep 14, 2017

Did you end up pushing this to try to check talos?

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