# Daml-ui-template behaviour on file change

**URL:** <https://forum.canton.network/t/daml-ui-template-behaviour-on-file-change/899>\
**Category:** App Development\
**Tags:** daml, react\
**Created:** [July 22, 2020, 8:41pm UTC](https://forum.canton.network/t/daml-ui-template-behaviour-on-file-change/899 "2020-07-22T20:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex\_m](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/alex_m/32/550_2.png) [@alex\_m](https://forum.canton.network/u/alex_m)\
**Post date:** [July 22, 2020, 8:41pm UTC](https://forum.canton.network/t/daml-ui-template-behaviour-on-file-change/899/1 "2020-07-22T20:41:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [July 24, 2020, 10:28am UTC](https://forum.canton.network/t/daml-ui-template-behaviour-on-file-change/899/2 "2020-07-24T10:28:48Z")

</div>

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](https://github.com/digital-asset/daml-ui-template/blob/83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0/ui/src/components/App.tsx#L42,L43)
2. [daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub](https://github.com/digital-asset/daml-ui-template/blob/83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0/ui/src/context/UserContext.tsx#L48,L49)
3. [daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub](https://github.com/digital-asset/daml-ui-template/blob/83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0/ui/src/context/UserContext.tsx#L94,L95)
4. [daml-ui-template/UserContext.tsx at 83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0 · digital-asset/daml-ui-template · GitHub](https://github.com/digital-asset/daml-ui-template/blob/83a74c17f9ea5b8dc0dd5748fef8118c52b8e9f0/ui/src/context/UserContext.tsx#L113,L114)
