#When added solid-router Too much recursion

10 messages ยท Page 1 of 1 (latest)

weary meadow
#

How is routes defined

tacit girder
# weary meadow How is routes defined
import { lazy } from "solid-js";

const routes = [
  {
    path: "/",
    component: lazy(() => import("./App")),
  },
];

export { routes };
``` i have it like this
weary meadow
#

It's infinite recursion because you're pointing to app which uses the routes which pointes back to app etc.

tacit girder
#

@weary meadow Thank you so much.. my low iq cant get that ๐Ÿ˜„

#

It work now! โค๏ธ

weary meadow
#

No problem ๐Ÿ˜„

tacit girder
#

โค๏ธ

#

Is there any way to close thread? ๐Ÿ˜„

weary meadow
#

Just add a green check reaction so people know its solved, I don't think there's a way to close it