wix-incubator / repluggable

Pluggable micro frontends in React+Redux apps
MIT License
172 stars 13 forks source link

Add runLateInitializer to Shell #97

Closed felixb-wix closed 4 years ago

felixb-wix commented 4 years ago

Improve scenario of lazy component initialization - mute out-of-lifecycle warnings from connectWithShell. For that, Shell has new function

runLateInitializer<T>(initializer: () => T): T

code that runs inside runLateInitializer will be considered part of entry point lifecycle.

felixb-wix commented 4 years ago

Accompanying PR in packages: https://github.com/wix-private/responsive-editor-packages/pull/4964/files