mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: Page and Frame isLoaded undefined checks (#6255)
* fix(view): isLoaded handling closes https://github.com/NativeScript/NativeScript/issues/6179 * refactor: Error handling code in onCreateView
This commit is contained in:
committed by
Dimitar Topuzov
parent
13d4f34c1b
commit
4a11cf907c
@@ -328,7 +328,7 @@ export class CssState {
|
||||
* As a result, at some point in time, the selectors matched have to be requerried from the style scope and applied to the view.
|
||||
*/
|
||||
public onChange(): void {
|
||||
if (this.view.isLoaded) {
|
||||
if (this.view && this.view.isLoaded) {
|
||||
this.unsubscribeFromDynamicUpdates();
|
||||
this.updateMatch();
|
||||
this.subscribeForDynamicUpdates();
|
||||
|
||||
Reference in New Issue
Block a user