# Object state not stored locally when persisting

**URL:** <https://community.appfarm.io/t/object-state-not-stored-locally-when-persisting/1210>\
**Category:** Bug reports\
**Tags:** offline-support\
**Created:** [April 30, 2024, 8:07am UTC](https://community.appfarm.io/t/object-state-not-stored-locally-when-persisting/1210 "2024-04-30T08:07:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lars.bergh.hvidsten](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/lars.bergh.hvidsten/32/2486_2.png) [@lars.bergh.hvidsten](https://community.appfarm.io/u/lars.bergh.hvidsten)\
**Post date:** [April 30, 2024, 8:07am UTC](https://community.appfarm.io/t/object-state-not-stored-locally-when-persisting/1210/1 "2024-04-30T08:07:03Z")

</div>

Hi!

When using offline mode and persisting the object state is not stored locally until you use read objects. This happens regardless if the device is offline or not. My expectation would be that the object state is stored locally when you persist.

Steps to reproduce:

- Enable offline in app settings
- Create new object and check object state (NEW)
- Persist object and check state (Synchronized)
- Refresh app and check object state (NEW)

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [April 30, 2024, 9:39am UTC](https://community.appfarm.io/t/object-state-not-stored-locally-when-persisting/1210/2 "2024-04-30T09:39:28Z")

</div>

Hello Lars and thank you for reporting this to the community 😄

I was able to reproduce this on my machine and have made a ticket for the Dev team to look at.

//Erik

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [August 30, 2024, 6:56am UTC](https://community.appfarm.io/t/object-state-not-stored-locally-when-persisting/1210/3 "2024-08-30T06:56:35Z")

</div>

Hi,

The new release should contain a fix for the Object State not being stored in offline apps 🙂

> [@Release Notes 106](https://community.appfarm.io/t/release-notes-106/1353):
>
> Release 106 is here and we are very excited to bring you custom UI components! Create your own components You can now create your own reusable UI components by combining elements from Appfarm’s standard component library. This will streamline development, enhance design consistency, and improve maintainability. To create a component, right-click on any Container and select “Create component”. The Container and its contents will be converted to a component and added to a new Components list in …

// Erik
