Skip to content

Commit

Permalink
added news.
Browse files Browse the repository at this point in the history
Signed-off-by: Faakhir30 <[email protected]>
  • Loading branch information
Faakhir30 committed Dec 8, 2024
1 parent 0dfd597 commit 462323f
Show file tree
Hide file tree
Showing 3 changed files with 371 additions and 261 deletions.
32 changes: 32 additions & 0 deletions apps/remix/.registry.loader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
This file is autogenerated. Don't change it directly.
Instead, change the "addons" setting in your package.json file.
*/


const addonsInfo = [];
export { addonsInfo };

const safeWrapper = (func) => (config) => {
const res = func(config);
if (typeof res === 'undefined') {
throw new Error("Configuration function doesn't return config");
}
return res;
}

const projectConfigLoader = false;
const projectConfig = (config) => {
return projectConfigLoader && typeof projectConfigLoader.default === "function" ? projectConfigLoader.default(config) : config;
}

const load = (config) => {
const addonLoaders = [];
if(!addonLoaders.every((el) => typeof el === "function")) {
throw new TypeError(
'Each addon has to provide a function applying its configuration to the projects configuration.',
);
}
return projectConfig(addonLoaders.reduce((acc, apply) => safeWrapper(apply)(acc), config));
};
export default load;
1 change: 1 addition & 0 deletions packages/volto/news/6523.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable initial scroll to top after SSR completion. @Faakhir30
Loading

0 comments on commit 462323f

Please sign in to comment.