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

default setActive() to write cache files #40

Merged
merged 1 commit into from Sep 17, 2018

Conversation

dbushong
Copy link
Member

Given legacy code which called setActive() with no arguments, we
should also default to the old behavior of active mode writing out cache
files.

The broken case is when the shared store was instantiated not active,
then .setActive() was called later with no arguments

Given legacy code which called `setActive()` with no arguments, we
should also default to the old behavior of active mode writing out cache
files.

The broken case is when the shared store was instantiated not active,
then `.setActive()` was called later with no arguments
Copy link
Contributor

@jkrems jkrems left a comment

Choose a reason for hiding this comment

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

LGTM. I think at this point we could also remove the typeof === 'boolean' check but I'm fine with keeping this minimal. It was meant to make .setActive() in a worker not update the _writeCacheFiles to true but I don't think it does what it's supposed to based on this.

@dbushong dbushong merged commit 6f15bd1 into master Sep 17, 2018
@dbushong dbushong deleted the dbushong/feature/master/fix-set-active branch September 17, 2018 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants