+ {!context.isDeploy && (
+ <>
+
+ Async Rendering not implemented for section{" "}
+ {section}
+
+
+ If you are a developer, export a{" "}
+
LoadingFallback{" "}
+ component in this section. To learn more, check out our{" "}
+
+ guide
+
+
+
+ If you are NOT a developer, you can tweak Async Rendering. To learn
+ more, check out our{" "}
+
+ blog post
+
+
+ >
+ )}
+
+);
+
+export const loader = async (props: Props, req: Request, ctx: AppContext) => {
+ const { section, loading } = props;
+ const url = new URL(req.url);
+
+ const shouldRender = loading === "eager" || shouldForceRender({
+ ctx,
+ searchParams: url.searchParams,
+ });
+
+ if (shouldRender) {
+ return {
+ loading: "eager",
+ section: isDeferred