Skip to content

Conversation

@puschie286
Copy link

Created (angular) components are not part of the change detection cycle. This require the component to manually trigger change detection - and makes most components incompatible.

This PR ensure that created (angular) components are part of the regular angular change detection cycle.

Changes:

  • add components to angular change detection tree
  • mark component for change instead of manual triggering change detection
  • extend tests to check correct rendering behavior

- remove all not used imports
+ attach component view to application (to allow for change detection)
~ trigger change detection by markForCheck instead of forcing with detectChanges
~ use 'update' method for initial parameter setting (instead of identical implementation)
~ reduce nesting of 'update' method
~ missing import
- remove not required zone mock
~ hide expected test error
~ fix TestComponent properties do not exist on component instance
~ check for rendering with correct values in tests
~ trigger regular angular update cycle in tests
+ add method for accessing created component from renderer
+ add OnPush component test
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9352e51:

Sandbox Source
dockview-app Configuration
editor-gridview Configuration
externaldnd-dockview Configuration
fullwidthtab-dockview Configuration
iframe-dockview Configuration
keyboard-dockview Configuration
nativeapp-dockview Configuration
rendering-dockview Configuration

@puschie286
Copy link
Author

PR is ready to merge

@mathuo feel free to ask for any assistance

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.

1 participant