Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ...args, not arguments #2747

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
use ...args, not arguments
  • Loading branch information
peterbe committed Jan 29, 2021
commit 542cb91acc3fc58e44d965d58b48a43b1e91fc4f
4 changes: 2 additions & 2 deletions ssr/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ function getHrefLang(locale, otherLocales) {
const lazy = (creator) => {
let res;
let processed = false;
return () => {
return (...args) => {
if (processed) return res;
res = creator.apply(this, arguments);
res = creator.apply(this, ...args);
processed = true;
return res;
};
Expand Down