• codinginflow Profile Picture

    Coding in Flow @codinginflow

    2 days ago

    In TanStack Router, can I have a route.tsx and index.tsx in the same folder?

    codinginflow tweet picture

    9 0 25 7K 6
    Download Image
  • adac127 Profile Picture

    D@nT@stic @adac127

    2 days ago

    @codinginflow route.tsx is the main one here whereas index.tsx is acting kind of a fallback when no other matches exist. I mean it obviously works for you. But it's not "best practise" and should be handled differently.

    2 0 1 395 0
  • MohRah79 Profile Picture

    Moh Rah @MohRah79

    2 days ago

    @codinginflow Yes, I used route.tsx for the layout and index.tsx for the page. I’m not sure if it’s a good idea or not.

    1 0 3 199 1
  • pinesheet Profile Picture

    J Procka @pinesheet

    a day ago

    @codinginflow I do the same since I use route.tsx for the layout. I have no idea if it’s correct or not.

    1 0 1 23 0
  • onyedikachi224 Profile Picture

    Onyedikachi Ozoani @onyedikachi224

    2 days ago

    @codinginflow The index.tsx will render inside the <Outlet /> in route.tsx.

    1 0 5 233 0
  • brennendav1s Profile Picture

    Brennen Davis @brennendav1s

    2 days ago

    @codinginflow I do this when I have a list of items. /todos - route.tsx <- holds my list of items on the left hand side with the <Outlet /> on the right - index.tsx <- /todos goes here while keeping the list visible - $todoId.tsx <- /todos/$todoId goes here while keeping the list visible

    0 0 1 212 0
  • MrPotatoDip Profile Picture

    MrPotato | Lynkfire @MrPotatoDip

    2 days ago

    @codinginflow yes

    0 0 3 227 0
  • Udochiki Profile Picture

    MIRACLE CHIKI @Udochiki

    2 days ago

    @codinginflow I believe so The route.tsx serves as the layout/entry for the folder route while the index.tsx serves as the default route that is matched when no other route is matched.

    0 0 3 181 1
  • raiiii_kun Profile Picture

    Ryan Kuruppu @raiiii_kun

    2 days ago

    @codinginflow Yes. You need to use the outlet inside of route.tsx tho. What’s your use case ?

    0 0 0 72 0
  • OzmahG Profile Picture

    Ozmah @OzmahG

    2 days ago

    @codinginflow If I'm not mistaken route can be used as a layout or simply to apply context to all child routes.

    0 0 0 120 0
  • Playbook Profile Picture

    Playbook @Playbook

    4 days ago

    Need an easy way to tail a parlay? Tag @Playbook with your book of choice and we’ll build it for you. In your reply, ride it as-is or tweak any legs ✏️ exactly how you want them.

    Playbook tweet picture

    0 9 89 4.0M 20
    Download Image
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro