Skip to content

Commit

Permalink
react 19 time (#4848)
Browse files Browse the repository at this point in the history
* react 19 time

* idk why

* better default for resolvedColorMode

* remove prints
  • Loading branch information
adhami3310 authored Feb 19, 2025
1 parent deb1f4f commit 6e4522c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import {
export default function RadixThemesColorModeProvider({ children }) {
const { theme, resolvedTheme, setTheme } = useTheme();
const [rawColorMode, setRawColorMode] = useState(defaultColorMode);
const [resolvedColorMode, setResolvedColorMode] = useState("dark");
const [resolvedColorMode, setResolvedColorMode] = useState(
defaultColorMode === "dark" ? "dark" : "light"
);

useEffect(() => {
if (isDevMode) {
Expand Down
9 changes: 4 additions & 5 deletions reflex/constants/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,15 @@ class Commands(SimpleNamespace):
PATH = "package.json"

DEPENDENCIES = {
"@babel/standalone": "7.26.6",
"@emotion/react": "11.14.0",
"axios": "1.7.9",
"json5": "2.2.3",
"next": "15.1.6",
"next": "15.1.7",
"next-sitemap": "4.2.3",
"next-themes": "0.4.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-focus-lock": "2.13.5",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-focus-lock": "2.13.6",
"socket.io-client": "4.8.1",
"universal-cookie": "7.2.2",
}
Expand Down
11 changes: 0 additions & 11 deletions tests/integration/test_event_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,6 @@ async def _has_all_events():
"/on-mount-return-chain",
[
"on_load_return_chain",
"event_arg:unmount",
"on_load_return_chain",
"event_arg:1",
"event_arg:2",
"event_arg:3",
"event_arg:1",
"event_arg:2",
"event_arg:3",
Expand All @@ -509,12 +504,6 @@ async def _has_all_events():
[
"on_load_yield_chain",
"event_arg:mount",
"event_no_args",
"on_load_yield_chain",
"event_arg:mount",
"event_arg:4",
"event_arg:5",
"event_arg:6",
"event_arg:4",
"event_arg:5",
"event_arg:6",
Expand Down

0 comments on commit 6e4522c

Please sign in to comment.