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

fix(engine): reactive setters behind a flag #1444

Merged
merged 4 commits into from
Sep 23, 2019

Conversation

caridy
Copy link
Contributor

@caridy caridy commented Aug 12, 2019

Details

Revert of the revert from #1038

This commit fixes #858

This commit includes a new flag called ENABLE_REACTIVE_SETTER, that when enabled, makes all public setters reactive.

Does this PR introduce breaking changes?

  • No, it does not introduce breaking changes.

If yes, please describe the impact and migration path for existing applications.

The PR fulfills these requirements:

  • Have tests for the proposed changes been added? ✅
  • Have you followed these instructions to clearly describe the issue being fixed or feature enhanced? ✅

@caridy caridy requested a review from ekashida August 12, 2019 13:33
import { isUndefined, isFunction } from '../../shared/language';
import { getDecoratorsRegisteredMeta } from './register';
import { addCallbackToNextTick } from '../utils';
import { ENABLE_REACTIVE_SETTER } from '@lwc/features';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ekashida in vscode, I see this import marked as invalid export for some reason.

@@ -2,8 +2,7 @@ import { createElement } from 'test-utils';

import Parent from 'x/parent';

// TODO: issue #858 to enable reactive setters
xdescribe('Reactivity for setters', () => {
describe('Reactivity for setters', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ekashida how can we enable the flag here in the integration test?

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

Successfully merging this pull request may close these issues.

how to make normalization/setter routine reactive?
2 participants