Skip to content

Commit bfdd3c1

Browse files
authored
update slider calculator (#1648)
* update slider calculator * fix
1 parent 2ab9c35 commit bfdd3c1

File tree

2 files changed

+177
-139
lines changed

2 files changed

+177
-139
lines changed

pcweb/pages/pricing/pricing.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@
88
from pcweb.pages.pricing.faq import faq
99
from pcweb.pages.pricing.calculator import calculator_section
1010
from pcweb.meta.meta import hosting_meta_tags
11-
from pcweb.pages.pricing.slider_calculator import slider_calculator
11+
from pcweb.pages.pricing.slider_calculator import slider_calculator, MachineState
1212

1313
pricing_path = "/pricing"
1414

1515

16-
@rx.page(route=pricing_path, title="Reflex · Pricing", meta=hosting_meta_tags)
16+
@rx.page(
17+
route=pricing_path,
18+
title="Reflex · Pricing",
19+
meta=hosting_meta_tags,
20+
on_load=MachineState.reset_machines,
21+
)
1722
def pricing() -> rx.Component:
1823
"""Get the Pricing landing page."""
1924
from pcweb.components.docpage.navbar import navbar

0 commit comments

Comments
 (0)