Skip to content
CCPEDIAby Unity Nodes
App Development

Daml-ui-template behaviour on file change

2 posts383 views2 likesLast activity Jul 2020

  1. alex_mOP 1

    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

  2. cocreature 1

    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