---
title: "Discussion on \"Expo router v2  \"Attempted to navigate before mounting the Root Layout component. Ensure the Root Layout component is rendering a Slot\"  hatası çözümü\" | Hashnode"
description: "Discussion on \"Expo router v2  \"Attempted to navigate before mounting the Root Layout component. Ensure the Root Layout component is rendering a Slot\"  hatası çözümü\". Expo 49, Expo router v2 kullandıgımızda _layout.js içerisinde oturum kontrolü yapıp, session yoksa login ekranını açmak gibi bir standart kodum var.Expo'nun kendi dökümanında* örnek auth flow kodu mevcut. Ancak çalışmıyor *https://docs.expo.dev/route..."
url: "https://hashnode.com/posts/expo-router-v2-attempted-to-navigate-before-mounting-the-root-layout-component-ensure-the-root-layout-component-is-rendering-a-slot-hatasi-cozumu/64c034c84afab445d0d99f9c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Expo router v2 "Attempted to navigate before mounting the Root Layout component. Ensure the Root Layout component is rendering a Slot" hatası çözümü](https://mahmut.hashnode.dev/expo-router-v2-attempted-to-navigate-before-mounting-the-root-layout-component-ensure-the-root-layout-component-is-rendering-a-slot-hatasi-cozumu?utm_source=hashnode&utm_medium=feed)

Expo 49, Expo router v2 kullandıgımızda \_layout.js içerisinde oturum kontrolü yapıp, session yoksa login ekranını açmak gibi bir standart kodum var.Expo'nun kendi dökümanında\* örnek auth flow kodu mevcut. Ancak çalışmıyor \*https://docs.expo.dev/route...

Jul 25, 2023 · 1 min read · mahmut.hashnode.dev  
Read the article

-   [#expo](https://hashnode.com/tag/expo)
-   [#expo-router](https://hashnode.com/tag/expo-router)

## Written by

[Mahmut Gundogdu](https://hashnode.com/@Mahmut)

@Mahmut

  
[View profile](https://hashnode.com/@Mahmut)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
