Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
component: (_, { decorateAction }) =>
makeAuthorProfile(
decorateAction,
makeParams({
articleError: iteration =>
iteration === 2 ? new Error("Broken Page") : null,
articleQuery: authorArticlesWithImagesQuery,
articleVariables: iteration => ({
first: pageSize,
imageRatio: articleImageRatio,
skip: (iteration - 1) * pageSize,
slug
}),
pageSize,
slug
})
),
name: "With an error on pagination",