Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Daml-ui-template behaviour on file changeForum ↗

Daml-ui-template behaviour on file change

App Development2 posts345 views2 likesLast activity Jul 2020
AL
alex_mOP
Jul 2020

What part of the daml-ui-template code maintains the current page when files change/the browser refreshes? I started refactoring some of the code a few days ago and i have just noticed that I have lost that functionality!

Thank you

CO
cocreature
Jul 2020

Hi @alex_m, I assume you are referring to the fact that it keeps you logged in?

The login data is stored in local storage. This is handled in a few places. It’s probably easiest to search for localStorage locally but here is a list of all current references to it:

  1. daml-ui-template/App.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub
  2. daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub
  3. daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub
  4. daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub
← Back to Discussions