# Local Storage

## Local Storage Overview

{% hint style="warning" %}
You should now use [stored variables](https://docs.thunkable.com/snap-to-place/variables#app-stored-and-cloud-variables) instead of adding a Local Storage component. This will work the same way in the background but will save you a lot of blocks. To work with tabular data in your app please use the [local DB](https://docs.thunkable.com/snap-to-place/local-db) component in your app.
{% endhint %}

This storage option is useful for saving simple info on the device, especially helpful for remembering user's setting from a previous session.

## Save Data

To save data locally to your phone, simply name a `key` to store a `value` under. If you have a previous `value` in your `key`, saving it will override that `value`

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-LAn5wecEraNWaG7Ig2g%2F-LAn6Egc5yhMFI-0p1O6%2Flocal-storage-%E2%9C%95-fig-1.png?generation=1524497186680914\&alt=media)

## Get Data

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-LAn5wecEraNWaG7Ig2g%2F-LAn6EhaX0XOe3ZIIHrC%2Flocal-storage-%E2%9C%95-fig-2.png?generation=1524497186648695\&alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thunkable.com/snap-to-place/local-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
