Skip to content

Commit

Permalink
Remove unused SSR code
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Apr 10, 2024
1 parent 7ce9c83 commit d89c4c7
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/core/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,25 +262,7 @@ export function Fetch(Base) {
initFetch() {
const { loadSidebar } = this.config;

// Server-Side Rendering
if (this.rendered) {
const activeEl = this.__getAndActive(
this.router,
'.sidebar-nav',
true,
true
);
if (loadSidebar && activeEl) {
activeEl.parentNode.innerHTML += window.__SUB_SIDEBAR__;
}

this._bindEventOnRendered(activeEl);
this.$resetEvents();
this.callHook('doneEach');
this.callHook('ready');
} else {
this.$fetch(_ => this.callHook('ready'));
}
this.$fetch(_ => this.callHook('ready'));
}
};
}

0 comments on commit d89c4c7

Please sign in to comment.