From 5384b93367486e28a0740e5947742d611d954760 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Wed, 18 Dec 2024 19:39:59 +0100 Subject: [PATCH] forgot to replace this --- reflex/.templates/jinja/web/pages/index.js.jinja2 | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/reflex/.templates/jinja/web/pages/index.js.jinja2 b/reflex/.templates/jinja/web/pages/index.js.jinja2 index 3eced6893..5551ad5fc 100644 --- a/reflex/.templates/jinja/web/pages/index.js.jinja2 +++ b/reflex/.templates/jinja/web/pages/index.js.jinja2 @@ -1,4 +1,5 @@ {% extends "web/pages/base_page.js.jinja2" %} +{% from "web/pages/macros.js.jinja2" import renderHooks %} {% block declaration %} {% for custom_code in custom_codes %} @@ -8,17 +9,7 @@ {% block export %} export default function Component() { - {% for hook, data in hooks.items() if data and data.position and data.position == const.hook_position.INTERNAL %} - {{ hook }} - {% endfor %} - - {% for hook, data in hooks.items() if not data or (not data.position or data.position == const.hook_position.PRE_TRIGGER) %} - {{ hook }} - {% endfor %} - - {% for hook, data in hooks.items() if data and data.position and data.position == const.hook_position.POST_TRIGGER %} - {{ hook }} - {% endfor %} + {{ renderHooks(hooks)}} return ( {{utils.render(render, indent_width=0)}}