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
06-23-2022 14:12
https://dev.fitbit.com/build/guides/file-system/
06-23-2022 13:54
06-23-2022 13:54
I think localStorage only exists in the companion API.
06-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*
06-23-2022 14:12
06-23-2022 14:12
https://dev.fitbit.com/build/guides/file-system/
06-23-2022 14:17
06-23-2022 14:17
thanks for your time, I'll check it out!