06-23-2022 12:03
06-23-2022 12:03
so, I copy/pasted the following code from the local storage API into my project:
import { localStorage } from "local-storage";
localStorage.setItem("myKey", "myValue");
console.log(localStorage.getItem("myKey"));and my build output keeps throwing me this error:
TypeError: Cannot create property 'code' on boolean 'true'
any help would be appreciated, I am really stuck!
Answered! Go to the Best Answer.
06-23-2022 14:12
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
06-23-2022 14:12
https://dev.fitbit.com/build/guides/file-system/
Best Answer06-23-2022 13:54
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
06-23-2022 13:54
I think localStorage only exists in the companion API.
Best Answer06-23-2022 14:10
06-23-2022 14:10
do you know the best way to implement local storage into a fitbit app?
*thanks for the response*
Best Answer06-23-2022 14:12
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
06-23-2022 14:12
https://dev.fitbit.com/build/guides/file-system/
Best Answer06-23-2022 14:17
06-23-2022 14:17
thanks for your time, I'll check it out!