React protected routes in 4 minutes

Поделиться
HTML-код
  • Опубликовано: 23 авг 2024
  • React protected routes with react router version 6.
    Instructor: / dennisivy11 / / dennis-ivanov
    💬 Follow Appwrite on social media & join our Discord community.
    • Twitter: / appwrite
    • Discord: appwrite.io/di...
    • LinkedIn: / appwrite

Комментарии • 43

  • @himanshuprasad5461
    @himanshuprasad5461 Месяц назад +1

    I don't have any words I just wanna appreciate you. Just keep spreading your valuable knowledge

  • @bones1343
    @bones1343 5 месяцев назад +3

    What a coincidence that this pops up as I was working on this with Appwrite today 😄

    • @Appwrite
      @Appwrite  5 месяцев назад +1

      Perfect timing 😁

  • @berkaysenoglu1784
    @berkaysenoglu1784 3 месяца назад +2

    Really fast and efficient , thanks!

  • @sharonraj801
    @sharonraj801 Месяц назад

    Thank You bro, less duration with more details

  • @solongdygaming4729
    @solongdygaming4729 Месяц назад +1

    I'm so lucky to found your video ❤

  • @shubhamdas6519
    @shubhamdas6519 3 месяца назад +1

    easy fast efficient, thanks a lot sir

  • @solongdygaming4729
    @solongdygaming4729 Месяц назад +1

    Thanks ❤

  • @metadope9407
    @metadope9407 3 месяца назад +1

    Pretty accurate 👍🏻

  • @ZahidHussain-hj2dk
    @ZahidHussain-hj2dk Месяц назад

    beautifully explained

    • @Appwrite
      @Appwrite  29 дней назад

      Glad you liked it :) - Dennis Ivy

  • @HijabiCoder
    @HijabiCoder 5 месяцев назад +1

    Finally the mouse let you do your thing? 😅
    Nice technique for protecting routes, I don't think I realised that you could nest routes within a . Thought it had to be only 🤔

    • @Appwrite
      @Appwrite  5 месяцев назад +2

      We decided to set a schedule for when he's allowed to make noise. Deal was a win win. 😁
      And yea, the Routes nesting is a change made in react router V6 - Dennis Ivy

  • @samuelkamau1550
    @samuelkamau1550 Месяц назад

    nice tutorial, great voice👍

  • @victorcr2734
    @victorcr2734 Месяц назад

    amazing, thank you very much

  • @mohaymenul-islam
    @mohaymenul-islam 9 дней назад

    Great

  • @frontendkundaligi
    @frontendkundaligi 3 месяца назад

    pretty cool

  • @CarlosDuque-e3j
    @CarlosDuque-e3j 22 дня назад

    What vs code theme is that? :O

  • @khcreations1417
    @khcreations1417 Месяц назад

    YOu are Awesome

  • @stivenreina2267
    @stivenreina2267 2 месяца назад

    great video, but, how do i protect auth routes?

  • @HarishKurupnarayana
    @HarishKurupnarayana Месяц назад

    What if I access the login page after the user is set to true?

    • @Appwrite
      @Appwrite  29 дней назад +1

      You would wrap the login page with a parent that doesn't render the page until this check is made. i.e. context api would do this. - Dennis Ivy

    • @HarishKurupnarayana
      @HarishKurupnarayana 28 дней назад

      @@Appwrite thanks for the reply, will try

    • @alphacentauri8035
      @alphacentauri8035 8 дней назад

      What if it takes 20 seconds to fetch the user?

    • @HarishKurupnarayana
      @HarishKurupnarayana 7 дней назад

      @@alphacentauri8035 show a loader

  • @chowiee5688
    @chowiee5688 Месяц назад

    In protecting routes i can use loaders?

    • @Appwrite
      @Appwrite  29 дней назад +1

      From what I understand, loaders can only be used if you create your routes with "createBrowserRouter", but either way, this would work the same.

  • @limitedclashbimal8842
    @limitedclashbimal8842 5 месяцев назад

    Is there any issue with the appwrite 14.x version its showing error in createEmailPasswordSession()

    • @Appwrite
      @Appwrite  5 месяцев назад

      You seem to be using an SDK version that is compatible with Appwrite 1.5.x and not 1.4.x. You probably need to use one version before what you're currently using.

  • @0raffay
    @0raffay Месяц назад

    What is that vs code theme ?

    • @Appwrite
      @Appwrite  29 дней назад +1

      Halcyon Theme

  • @Pepe-tp5mk
    @Pepe-tp5mk 5 месяцев назад +1

    Best video but Appwrtite query don't work

    • @Appwrite
      @Appwrite  5 месяцев назад +1

      Which one?

    • @Pepe-tp5mk
      @Pepe-tp5mk 5 месяцев назад

      ​@@Appwriteabout listdocument

    • @Pepe-tp5mk
      @Pepe-tp5mk 5 месяцев назад +1

      @@Appwrite about ListDocument Query

  • @Dharmic_developer
    @Dharmic_developer 5 месяцев назад

    I used appwrite in my flutter app...it was smooth experience with only a problem i am having now about how to make database relationships ...
    Any help is appreciated...thank you

  • @jaguardeva772
    @jaguardeva772 3 месяца назад

    why do I get an error like this? SyntaxError: Unexpected token '

    • @jaguardeva772
      @jaguardeva772 3 месяца назад

      I think there is no error in my syntax
      import { Navigate, Outlet } from "react-router-dom";
      const PrivateRoutes = () => {
      const { isLogin } = useAuth();
      return isLogin ? : ;
      };
      export default PrivateRoutes;

    • @Appwrite
      @Appwrite  3 месяца назад

      Looks like you just had an extra “