Wire admin studio SSR and search infrastructure
This commit is contained in:
@@ -203,6 +203,7 @@ function CommunityActivityPage({
|
||||
)
|
||||
}
|
||||
|
||||
if (typeof document !== 'undefined') {
|
||||
const mountEl = document.getElementById('community-activity-root')
|
||||
|
||||
if (mountEl) {
|
||||
@@ -216,5 +217,6 @@ if (mountEl) {
|
||||
|
||||
createRoot(mountEl).render(<CommunityActivityPage {...props} />)
|
||||
}
|
||||
}
|
||||
|
||||
export default CommunityActivityPage
|
||||
|
||||
@@ -112,6 +112,7 @@ function LatestCommentsPage({ initialComments = [], initialMeta = {}, isAuthenti
|
||||
}
|
||||
|
||||
// Auto-mount when the Blade view provides #latest-comments-root
|
||||
if (typeof document !== 'undefined') {
|
||||
const mountEl = document.getElementById('latest-comments-root')
|
||||
if (mountEl) {
|
||||
let props = {}
|
||||
@@ -123,5 +124,6 @@ if (mountEl) {
|
||||
}
|
||||
createRoot(mountEl).render(<LatestCommentsPage {...props} />)
|
||||
}
|
||||
}
|
||||
|
||||
export default LatestCommentsPage
|
||||
|
||||
Reference in New Issue
Block a user