mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
fix(): exclude components from ssr (#20674)
This commit is contained in:
@ -21,7 +21,33 @@ export class IonicServerModule {}
|
|||||||
export function hydrateIonicComponents(doc: any, appId: any) {
|
export function hydrateIonicComponents(doc: any, appId: any) {
|
||||||
return () => {
|
return () => {
|
||||||
return hydrateDocument(doc, {
|
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 => {
|
.then(hydrateResults => {
|
||||||
hydrateResults.diagnostics.forEach(d => {
|
hydrateResults.diagnostics.forEach(d => {
|
||||||
|
Reference in New Issue
Block a user