How to avoid circular import using SearchParams? #3391
fionamurphy
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
I'm following the basic search params example here: https://github.com/TanStack/router/blob/main/examples/react/basic-default-search-params/src/main.tsx#L156
Is there any way to have my route and my component in different files and avoid circular imports? Based on the example I need to import
PostComponent
into the postRoute file andpostRoute
into thePostComponent
file and dependency cruiser will complain. Any way to avoid this? I am using path based routing. Thanks!Beta Was this translation helpful? Give feedback.
All reactions