Questions tagged [local-storage]

LocalStorage is a way to store persistent data using JavaScript (see also: SessionStorage).

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Legend state persistence plugin is not setting on local

I am trying to working with legend state persistence plugin in local. I do all the setups and imports are ok. But localstorage value is not setting. And indexDB's database name legend and table `store'...
Golam Mostafa's user avatar
0 votes
1 answer
22 views

How to capture local storage from browser using Jmeter?

There is a URL. The browser generates a new key and value dynamically every time when I launch the URL. And that is stored in local storage. Also when this url is launched it redirects to an auth page....
Krishnaveni's user avatar
-1 votes
1 answer
24 views

How to actually store an onclick function in localstore so it doesn't refresh all back to default

I want to change the currency of an existing products' prices that are in JOD (1 JOD = 1.41$ ) I did that using convertToUSD() function in Js, however, I couldn't save the changes, whenever I refresh ...
Sarah Bader's user avatar
0 votes
0 answers
14 views

React grid layout resets local storage when dynamically generated cards

I am dynamically getting data from backend and converting them to cards, These cards are draggable and also resizable When I change the layout (say by dragging a card to different location), my local ...
ubi sage's user avatar
-1 votes
2 answers
73 views

Javascript: localstorage issue

I'm trying to create a shopping-car-function with a local storage which remembers the items in the shopping basket, but after reloading when i add or remove a item to the basket it start from 0 again. ...
Tom de Wilde's user avatar
0 votes
0 answers
13 views

Use ffmpeg with paths in flutter

I have no idea how to use ffmpeg from paths. In all the examples I have seen use files from assets, and this solution does not apply to my problem. This is an example that is in another question here: ...
ivan reyes's user avatar
0 votes
2 answers
54 views

RadzenCard are not showing up when using Blazored.LocalStorage to store the items filled out in it in local storage

I have a form that allows users to fill out multiple fields for electronics surplus.it stores the data for all the fields that I have in a RadzenCard using Blazored LocalStorage then loads the data ...
djjailbreak's user avatar
0 votes
1 answer
22 views

Unable to save the data in localStorage for my Game(Tic Tac Toe)

I was building my first next JS Project To learn more about it so I decided to make (Tic Tac Toe Game), I am unable to save the game of progress to browsers local storage if somebody refreshes the ...
Sukhvir Singh's user avatar
0 votes
1 answer
33 views

React: Using events to trigger functions

I'm building a sidecart functionality on my website with real-time updates based around a Local Storage array containing cart items. I'm using events to detect changes but I'm having a hard time to ...
poltergaz's user avatar
0 votes
1 answer
16 views

Chrome Extension Error MANIFEST-000001: Unable to create sequential file

Hey I currently work on a chrome-extension myself and running into following error for now reaseon. IO error: .../MANIFEST-000001: Unable to create sequential file (ChromeMethodBFE: 7::...
andAnother1's user avatar
0 votes
1 answer
54 views

Array showing up as empty outside of function

I am trying to authenticate the user's username and password by matching the login user details with the signup user details, that are saved in localStorage. However, I see that when I console.log the ...
Neelam's user avatar
  • 47
0 votes
1 answer
35 views

Please help me to solve this useEffect issue [duplicate]

The app works fine and adds the added data to the localhost but when I reload I lose the data, But it should be there from Localhost. It looks like I am using the useEffect the wrong way. Please check ...
Chandan Sayed's user avatar
0 votes
0 answers
13 views

Is there way to store the received json data from server in local or session storage in browser using python

localStorage = localStoragePy('app-namespace', 'local') user = { 'name':'Mathew', } def store_data(): localStoragePy.setItem(localStorage,'user_id',user) def get_store(): values_1 =...
Dharanidharan.B's user avatar
-1 votes
2 answers
66 views

Error: Cannot read properties of undefined (reading 'trim')

I have divs on my site, when I click one, a textbox appears unique to that div. When I press the Add Item button that's supposed save the text, it gives me an error on the addListItem function: ...
kur0bane's user avatar
0 votes
0 answers
10 views

How to keep a hidden element visible after going to another page and returning?

I'm making a birthday card website for my dad. There are five buttons you can click to reveal different popups. Once all the buttons have been clicked, a hidden link to a photo gallery appears. In ...
kamp's user avatar
  • 1
0 votes
0 answers
6 views

Versioned modal pop up one time per user

In my website, I want to display a modal everytime I update the "patch notes", meaning the new features and bug fixes. The updates and bug fixes are saved on another project database, so I'...
Gabriel Assis's user avatar
0 votes
1 answer
30 views

localStorage is not visible in iFrame

We have a sporadic issue when we setup some data to the localStorage in a separate tab, then when we load the same domain in the same browser in iFrame under another domain, we don't see those data. ...
Maksym Ivanov's user avatar
0 votes
0 answers
63 views

Local storage doesn't get updated

In the following code, after using the deleteNote() function, the local storage returns empty array instead of the filteredNotes: const mockStorage = { items: new Map(), getItem(key) { ...
mahnegar 's user avatar
-2 votes
2 answers
13 views

I want the website state to persist after a refresh

I have a site where users can create divs with a button, and then add text to them. I could save the text to the local storage, but I'd also like to save the divs and their state, like where they are ...
kur0bane's user avatar
0 votes
2 answers
41 views

Flutter shared_preferences has "no guarantee that writes will be persisted to disk after returning". What EXACTLY does that mean?

The Flutter shared_preferences package comes with a warning that says: there is no guarantee that writes will be persisted to disk after returning Because of that people often recommend using ...
VIBrunazo's user avatar
  • 1,352
-2 votes
1 answer
59 views

How to compare user input with local storage and update DOM whilst searching?

I have a todo list where users can add notes. These notes are stored in local Storage, where the values are then displayed on the page after submitting input. I've already implemented the add notes ...
Hamza 's user avatar
0 votes
1 answer
36 views

New Android storage Permission for API 13 and above

I want to save image from an ImageView to storage in Android using JAVA. I want to know how to give storage permissions for API 13 and above.
Muhammad Zeeshan Ali's user avatar
0 votes
2 answers
52 views

localstorage only showing one data from user

i'm trying to display some of the user information, such as its real name, some text about itself and its username but only the username is being displayed when i try to show the real name and the ...
Hjaeter's user avatar
  • 31
1 vote
0 answers
34 views

Access Local Storage in Android Studio WebView

How do I access local storage in android studio? Basically what I've got is a simple webview of a website. In the javascript section of the website I'm setting up some values. But when I open the app ...
Sai Chaitanya's user avatar
-1 votes
0 answers
34 views

the code works as expected but i am getting an error, why? [duplicate]

text //the question associated with my post doesn't provide a solution to my problem, i tried everything suggested there and didnt do anything //this function toggles the css classes function ...
digitArena's user avatar
0 votes
0 answers
25 views

i'm getting this error: Error: Text content does not match server-rendered HTML. Warning: Text content did not match. Server: "0" Client: "01"

I'm trying to create a cart page but i keep running into this error, the error began when i added localStorage to it. I will provide the stateContext and Cart component code below. "use client&...
Gideon Olaiya's user avatar
0 votes
0 answers
20 views

Saving Dragged and Dropped Item Positions in Local Storage for Persistent Display

const titleElement = document.querySelector('.js-title'); const messageElement = document.querySelector('.js-message'); const addBtn = document.querySelector('.js-add-button'); const ulList = document....
lukas95's user avatar
  • 13
-2 votes
0 answers
68 views

Why is default data not showing up in local storage?

I'm trying to get my default books, 'Can't Hurt Me' and 'Extreme Ownership', show up. They do show up in the following situation: in my Virtual Box when I open live server from my VS Code, and when I ...
Leon Chan's user avatar
0 votes
0 answers
31 views

NextJS 13 - How to use Localstorage

how can get data from LocalStorage/SessionStorage/Cookies to make initialState of Context API in nextjs 13. I tried calling locastorage in the client component use client but the problem is that it ...
Crodic's user avatar
  • 1
1 vote
2 answers
41 views

Not able to update CartItems in Local Storage

When i click on addproduct then it gives error of undefined.. here is my ProductDetails.js code Why the product setting to localstorage is undefined import axios from "axios"; import React, {...
Suraj Jawrani's user avatar
-1 votes
4 answers
61 views

React localStorage value resets after every refresh

Whenever a new item is added to the list, the local storage is updated but if i refresh the page. The key remains but the value is reset to an empty array. import { useState, useEffect } from 'react'; ...
Awwfull's user avatar
0 votes
0 answers
26 views

How can i access local app storage in flutter app, when app is overwritten from natiive swift app?

I have created new flutter app, which is clone of native swift ios app. Both app will have same bundle identifier, So once app launch on app store, Flutter app will overwrite native swift ios app. Now,...
Jaini's user avatar
  • 13
-1 votes
1 answer
21 views

jquery get data from another page to current page [closed]

I have two pages index.html and profile.html profile.html has user details stored in it. Now i want to get the data of profile page in index.html with out visiting the profile page. can anyone please ...
Nagaraj Saparay's user avatar
-1 votes
0 answers
32 views

Storing UTM parameters using localStorage

I am demand gen in one B2B company, and I've heard there is a way to store UTM parameters (in my case most important thing) from URL and append them every time users re-visits our website using ...
Andrija Kocic's user avatar
0 votes
0 answers
22 views

Why does my offline functionality work on localhost but fail after hosting website? Data retrieval from local storage isn't functioning as expected

I created a weather application and made the code so that when user is online all the data searched is saved in the local storage and when user is offline it still shows data from the local storage. ...
Mahima Rai's user avatar
1 vote
1 answer
99 views

Playing video list from local storage in Flutter (out of memory error)

The goal I'd like to download a list of videos to local storage and then autoplay them in Flutter on Android. The problem I can do it with the video_player package and one VideoPlayerController at a ...
Suragch's user avatar
  • 485k
2 votes
1 answer
156 views

Next.js, Zustand and loading initial state from the local storage

In my Zustand store I try loading initial state from data persisted in Local storage (I did not opt for middle-ware as there were some kinks with Next that I didn't want to deal with): const ...
Faire's user avatar
  • 736
0 votes
1 answer
39 views

when delete data from local storage with splice method, always the last element is deleting

import React, { useEffect, useState } from "react"; // import styles from "./home.module.css"; import { v4 as uuidv4 } from "uuid"; const Home = () => { let ...
Mustafa Utku Ergün's user avatar
0 votes
1 answer
55 views

How to keep state of a checkbox?

I have a list of users in 3 different groups(Group A, Group B, and Group C) that I can search by their names. There's a checkbox next to each user. My issue is that even though I click on a checkbox (...
Devmix's user avatar
  • 1,646
1 vote
0 answers
27 views

Understanding local file uploads in web browsers

I wasn't sure how to search for this questions - I'm trying to ensure that a file uploaded locally to a front-end application is not stored anywhere else, and removed when a user closes a web browser. ...
Yolo_chicken's user avatar
  • 1,235
1 vote
5 answers
151 views

Build a modal with a "do not show again" checkbox in Angular

I'm working in a Angular project (version 16) and I'd like to build a dialog modal with a "do not show again" checkbox. The process would be this one : a user visits the web application. At ...
Julien's user avatar
  • 35
0 votes
0 answers
35 views

How to add cart items in local storage and how can I receive it on my cart page and show it

I have done this for storing my cart item in local storage. from my ProductDetails.js const addProduct = (product) => { dispatch(addToCart(product)); localStorage.setItem("cartItem&...
Suraj Jawrani's user avatar
0 votes
1 answer
43 views

Load filter from path with deepar_flutter

I need to load a camera filter (.deepar) with the deepar_flutter plugin, but when I give it the path, it automatically adds a "flutter_assets/" at the beginning, however the camera filter is ...
Ivan David's user avatar
0 votes
0 answers
16 views

Will localstorage be reset when webview is updated to mobile app?

I have a mobile app that uses webview. I keep the userid variable in the localstorage value on this website, will the localstorage values be reset when I make a new update to the application? This ...
Kadir Çolak's user avatar
0 votes
1 answer
54 views

IFrame Local Storage Name has additional Suffix "^0<parent domain url>" in Chrome Browser

I've encountered an strange behavior in Chrome related to the local storage url naming that the browser decides. I've noticed that the local storage name inside an iframe has a suffix "^0" ...
Haim Rapoport's user avatar
0 votes
0 answers
22 views

Blazor session storage - How to pass unknown type

I would like to create a method to handle returning the objects in SessionStorage throughout my Blazor app. The error I am getting of course is: 'obj' is a variable but is used like a type Is there a ...
dbay's user avatar
  • 51
0 votes
1 answer
28 views

How do I use useEffect to save a background color state?

I am trying to save the background colour of my wishlist toggle button so that when the user travels across pages the colour of button remains "black" to show the user they have already ...
Neelam's user avatar
  • 47
0 votes
0 answers
22 views

How to add localStorage to my to-do website? [duplicate]

I am trying to make a to-do website where I will input my tasks which i want to do and when I want to check what they were, I just open the site. If I want to delete them I double click. But I can't ...
Plamen's user avatar
  • 9
0 votes
0 answers
29 views

Shared Preferences usage in flutter project

I am trying to use "shared Preferences in flutter project, but getting errors in implimentation file called as "preferences_service.dart" in my project. Can you check where the erros ...
Bobx's user avatar
  • 21
0 votes
0 answers
24 views

javascript changes wrong object key [duplicate]

below is my code i am defining an object, and adding second and third keys to it. And at the end when i change the third key, it also changes the second key somehow, you can look results from browsers ...
user_unknown's user avatar

1
2 3 4 5
208