Hey everyone! 👋
I'm setting up a new SPA with TanStack Router and I really want to use Feature-Sliced Design (FSD) for my architecture.
My main question is: how do you reconcile TanStack's file-based src/routes directory with FSD's strict src/pages layer? Do you keep the route files super thin and just import the FSD page components into them?
I'm also bit stuck on how to handle TanStack's route loader functions while keeping my FSD layers clean.
Do you usually put your API calls and queries directly in the src/routes/ files, or do you extract them into FSD's entities / features layers and just import those fetching functions into the route loaders?
Planning to use this skills too. https://skills.sh/feature-sliced/skills/feature-sliced-design (from https://fsd.how/)
If anyone has a recommended folder structure or an example repo using both, I'd love to see it!