diff --git a/packages/gatsby/src/cache-dir/component-renderer.js b/packages/gatsby/src/cache-dir/component-renderer.js index b3162c57e1a9d..2dc2d5696ed65 100644 --- a/packages/gatsby/src/cache-dir/component-renderer.js +++ b/packages/gatsby/src/cache-dir/component-renderer.js @@ -68,6 +68,7 @@ class ComponentRenderer extends React.Component { render() { if (this.state.pageResources) { return createElement(this.state.pageResources.component, { + key: this.props.location.pathname, ...this.props, ...this.state.pageResources.json, })