Having two path params with the same name in session storage

  • needtheanswers-1300853620887126180

    needtheanswers

    4 months ago

    Hi,
    I use path params with the name ABC on one page of my application. I save the path param in my session storage. Can I also use a path param with the name ABC on another page of my application or would this cause any problems?

    Thanks πŸ™‚
  • lucasg-1300855551265341514

    Lucas G

    4 months ago

    You never want to use the same name for different things anywhere, that will lead to mixups and overwrites
  • That includes session storage
  • needtheanswers-1300855755918016542

    needtheanswers

    4 months ago

    Ok, thanks Lucas. πŸ™ IΒ΄m gonna change that right away then
  • lucasg-1300855760200138823

    Lucas G

    4 months ago

    If you are prefixing them then it should be fine.
    page1abc
    page2abc
    πŸ‘1
  • local and session storage is the same for the whole site
  • You can see what's currently being stored by opening up console on any site
  • Since it can be easily accessed, be sure to not store anything important/sensitive there
  • needtheanswers-1300856316310454285

    needtheanswers

    4 months ago

    That makes sense. Thank you for the clarification. And sure, I wonΒ΄t.
    πŸ‘1
  • A bit off topic but any idea when V2 is gonna be available or is there another solution that allows us to hide our API endpoints?
  • lucasg-1300856634268188747

    Lucas G

    4 months ago

    v2 won't hide endpoints
  • needtheanswers-1300856802665304075

    needtheanswers

    4 months ago

    Oh really, I must have misunderstood something then
  • lucasg-1300856897204650026

    Lucas G

    4 months ago

    Any calls with sensitive info (like API keys) should be made from a backend
  • needtheanswers-1300857729287720981

    needtheanswers

    4 months ago

    Definitely but the endpoints are still visible in the console
  • lucasg-1300858201004052542

    Lucas G

    4 months ago

    What is your concern?
  • Endpoints being visible shouldn’t be an issue
  • needtheanswers-1300871077299359878

    needtheanswers

    4 months ago

    Just people abusing data since some of my endpoints do not require authorization..
  • lucasg-1300896180850659433

    Lucas G

    4 months ago

    Ah I see. Yeah we should always make sure all public endpoints are secure
  • needtheanswers-1300896441882906698

    needtheanswers

    4 months ago

    Definitely πŸ’―

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.