React protected routes in 4 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 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

ความคิดเห็น • 45

  • @himanshuprasad5461
    @himanshuprasad5461 2 หลายเดือนก่อน +3

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

    • @Appwrite
      @Appwrite  2 หลายเดือนก่อน

      😁

  • @bones1343
    @bones1343 6 หลายเดือนก่อน +5

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

    • @Appwrite
      @Appwrite  6 หลายเดือนก่อน +1

      Perfect timing 😁

  • @sharonraj801
    @sharonraj801 2 หลายเดือนก่อน +1

    Thank You bro, less duration with more details

  • @berkaysenoglu1784
    @berkaysenoglu1784 4 หลายเดือนก่อน +3

    Really fast and efficient , thanks!

  • @solongdygaming4729
    @solongdygaming4729 2 หลายเดือนก่อน +2

    I'm so lucky to found your video ❤

    • @Appwrite
      @Appwrite  หลายเดือนก่อน +1

      😁

  • @shubhamdas6519
    @shubhamdas6519 4 หลายเดือนก่อน +2

    easy fast efficient, thanks a lot sir

  • @heech6941
    @heech6941 22 วันที่ผ่านมา +1

    Hello any ideas why when I did this and user clicked on protected routes even though they are not logged in, a blank white page shows up for milliseconds and then redirects me to the login page

  • @CarlosDuque-e3j
    @CarlosDuque-e3j หลายเดือนก่อน +2

    What vs code theme is that? :O

  • @HijabiCoder
    @HijabiCoder 6 หลายเดือนก่อน +2

    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  6 หลายเดือนก่อน +3

      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

  • @Devwithaayu
    @Devwithaayu 6 วันที่ผ่านมา

    thank you show much

  • @solongdygaming4729
    @solongdygaming4729 2 หลายเดือนก่อน +1

    Thanks ❤

  • @ZahidHussain-hj2dk
    @ZahidHussain-hj2dk 2 หลายเดือนก่อน

    beautifully explained

    • @Appwrite
      @Appwrite  หลายเดือนก่อน

      Glad you liked it :) - Dennis Ivy

  • @metadope9407
    @metadope9407 4 หลายเดือนก่อน +1

    Pretty accurate 👍🏻

  • @victorcr2734
    @victorcr2734 2 หลายเดือนก่อน

    amazing, thank you very much

    • @Appwrite
      @Appwrite  หลายเดือนก่อน

      😉

  • @samuelkamau1550
    @samuelkamau1550 2 หลายเดือนก่อน

    nice tutorial, great voice👍

  • @mohaymenul-islam
    @mohaymenul-islam หลายเดือนก่อน

    Great

  • @frontendkundaligi
    @frontendkundaligi 4 หลายเดือนก่อน

    pretty cool

  • @stivenreina2267
    @stivenreina2267 3 หลายเดือนก่อน

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

  • @limitedclashbimal8842
    @limitedclashbimal8842 6 หลายเดือนก่อน

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

    • @Appwrite
      @Appwrite  6 หลายเดือนก่อน +1

      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.

  • @chowiee5688
    @chowiee5688 2 หลายเดือนก่อน

    In protecting routes i can use loaders?

    • @Appwrite
      @Appwrite  หลายเดือนก่อน +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.

  • @khcreations1417
    @khcreations1417 2 หลายเดือนก่อน

    YOu are Awesome

    • @Appwrite
      @Appwrite  หลายเดือนก่อน

      😁

  • @HarishKurupnarayana
    @HarishKurupnarayana หลายเดือนก่อน

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

    • @Appwrite
      @Appwrite  หลายเดือนก่อน +2

      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 หลายเดือนก่อน

      @@Appwrite thanks for the reply, will try

    • @alphacentauri8035
      @alphacentauri8035 หลายเดือนก่อน

      What if it takes 20 seconds to fetch the user?

    • @HarishKurupnarayana
      @HarishKurupnarayana หลายเดือนก่อน

      @@alphacentauri8035 show a loader

  • @0raffay
    @0raffay 2 หลายเดือนก่อน

    What is that vs code theme ?

    • @Appwrite
      @Appwrite  หลายเดือนก่อน +1

      Halcyon Theme

  • @Dharmic_developer
    @Dharmic_developer 6 หลายเดือนก่อน

    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

  • @Pepe-tp5mk
    @Pepe-tp5mk 6 หลายเดือนก่อน +1

    Best video but Appwrtite query don't work

    • @Appwrite
      @Appwrite  6 หลายเดือนก่อน +1

      Which one?

    • @Pepe-tp5mk
      @Pepe-tp5mk 6 หลายเดือนก่อน

      ​@@Appwriteabout listdocument

    • @Pepe-tp5mk
      @Pepe-tp5mk 6 หลายเดือนก่อน +1

      @@Appwrite about ListDocument Query

  • @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 “