Daml-ui-template behaviour on file change
- alex_mOP 1
What part of the
daml-ui-templatecode 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
- 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
localStoragelocally but here is a list of all current references to it:- daml-ui-template/App.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub
- daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub
- daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub
- daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub