From 2b5af328753280fb585b729a93a82e2d119d1bd2 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Mon, 7 Nov 2022 14:12:24 +0100 Subject: [PATCH] fix: drop `__renderedByLocation` prop when calculating slice props hashes and don't expose it to slice component (#36979) --- packages/gatsby/cache-dir/slice.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gatsby/cache-dir/slice.js b/packages/gatsby/cache-dir/slice.js index 5614cade4503d..a1a6f6601ed17 100644 --- a/packages/gatsby/cache-dir/slice.js +++ b/packages/gatsby/cache-dir/slice.js @@ -13,6 +13,7 @@ export function Slice(props) { sliceName: props.alias, } delete internalProps.alias + delete internalProps.__renderedByLocation const slicesContext = useContext(SlicesContext)