message: bug: fix invalidation of entity and re-rendering of the EntityRoutes
diff: @@ -174,12 +174,14 @@ export const EntityLayout = ({
  }: EntityLayoutProps) => {
  const { kind, namespace, name } = useEntityCompoundName();
  const { entity, loading, error } = useContext(EntityContext);
  -
  - const routes = useElementFilter(children, elements =>
  + const routes = useElementFilter(
  + children,
  + elements =>
  elements
  .selectByComponentData({
  key: dataKey,
  - withStrictError: 'Child of EntityLayout must be an EntityLayout.Route',
  + withStrictError:
  + 'Child of EntityLayout must be an EntityLayout.Route',
  })
  .getElements<SubRoute>() // all nodes, element data, maintain structure or not?
  .flatMap(({ props }) => {
  @@ -196,6 +198,7 @@ export const EntityLayout = ({
  },
  ];
  }),
  + [entity],
  );
  const { headerTitle, headerType } = headerProps(
  