From 4204c625a64af378081dd6b0c95a890d88339c9c Mon Sep 17 00:00:00 2001
From: Nico Schett <52858351+schettn@users.noreply.github.com>
Date: Sun, 10 Oct 2021 08:39:10 +0000
Subject: [PATCH] feat(indexfield): add pageId to onRender cb
This change makes it possible to get the id of the page it is implemented. This is useful when no
fixedSlug is used and the pageId is autogenerated, thus not predictable.
re #37
---
examples/my-gatsby-site/src/templates/SamplePage.tsx | 2 +-
.../src/containers/fields/IndexField/index.tsx | 9 +++++----
packages/jaen-pages/src/contexts/cms.tsx | 1 +
packages/jaen-pages/src/types.ts | 1 +
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/examples/my-gatsby-site/src/templates/SamplePage.tsx b/examples/my-gatsby-site/src/templates/SamplePage.tsx
index 283da68f..918f7ad4 100644
--- a/examples/my-gatsby-site/src/templates/SamplePage.tsx
+++ b/examples/my-gatsby-site/src/templates/SamplePage.tsx
@@ -25,7 +25,7 @@ const SamplePage: JaenTemplate = () => {