Skip to content

Cyclic dependency in authentication example #1444

Answered by markerikson
joekrall asked this question in Q&A
Discussion options

You must be logged in to vote

RootState is a TS type, not a runtime value. It's safe to have circular imports of TS types - they all get resolved statically.

It's runtime imports that can cause issues.

The lint rule might be happier if the import was changed to explicitly be import type, possibly - I've seen other people mention it complaining about imports that are actually types as well.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joekrall
Comment options

Answer selected by joekrall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants