Skip to content

Commit

Permalink
fix(): exclude components from ssr (#20674)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Mar 2, 2020
1 parent 2177461 commit f64b142
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion packages/angular-server/src/ionic-server-module.ts
Expand Up @@ -21,7 +21,33 @@ export class IonicServerModule {}
export function hydrateIonicComponents(doc: any, appId: any) {
return () => {
return hydrateDocument(doc, {
clientHydrateAnnotations: false
clientHydrateAnnotations: false,
excludeComponents: [
// overlays
'ion-action-sheet',
'ion-alert',
'ion-loading',
'ion-modal',
'ion-picker',
'ion-popover',
'ion-toast',
'ion-toast',

// navigation
'ion-router',
'ion-route',
'ion-route-redirect',
'ion-router-link',
'ion-router-outlet',

// tabs
'ion-tabs',
'ion-tab',

// auxiliar
'ion-picker-column',
'ion-virtual-scroll'
]
})
.then(hydrateResults => {
hydrateResults.diagnostics.forEach(d => {
Expand Down

0 comments on commit f64b142

Please sign in to comment.