Skip to content

Commit

Permalink
fix naviagtion
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Feb 26, 2024
1 parent 5f62d4f commit cc38c5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions blocks/loader.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
// deno-lint-ignore-file no-explicit-any
import { FieldResolver } from "deco/engine/core/resolver.ts";
import { Release } from "deco/engine/releases/provider.ts";
import { logger } from "deco/observability/otel/config.ts";
import JsonViewer from "../components/JsonViewer.tsx";
import { ValueType } from "../deps.ts";
import { ValueType, weakcache } from "../deps.ts";
import { Block, BlockModule, InstanceOf } from "../engine/block.ts";
import { singleFlight } from "../engine/core/utils.ts";
import { ResolverMiddlewareContext } from "../engine/middleware.ts";
import { meter } from "../observability/otel/metrics.ts";
import { caches } from "../runtime/caches/denoKV.ts";
import { HttpContext } from "./handler.ts";
import {
applyProps,
FnContext,
FnProps,
RequestState,
SingleFlightKeyFunc,
applyProps,
} from "./utils.tsx";
import { logger } from "deco/observability/otel/config.ts";
import { weakcache } from "../deps.ts";
import { FieldResolver } from "deco/engine/core/resolver.ts";
import { Release } from "deco/engine/releases/provider.ts";

export type Loader = InstanceOf<typeof loaderBlock, "#/root/loaders">;

Expand Down
2 changes: 1 addition & 1 deletion components/section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const script = (id: string) => {
});
};
const observer = new IntersectionObserver(observeAndClose);
observer.observe(elem);
observer.observe(elem.parentElement!);
observeAndClose(observer.takeRecords());
}

Expand Down

0 comments on commit cc38c5f

Please sign in to comment.