I would like it to be documented how to apply through examples.
Hey @Benji - thanks again for this plugin. I am playing around with it now.
Can you please set it up so that we can enter a static value (such as â2â or âyesâ).
An example use case might be:
set localStorage darkmode = âyesâ
hi!
This is already possible as you can set the local storage to dynamic values, you can include a static value.
You can read more on how here [RESOLVED] Dynamic AND static text in a box
KR
Ben
Is it secure to store API tokens in your pluginâs Local Storage? How about XSS?
@Benji are you less secure than setting up Local Storage manually using Javascript and Toolbox plugin?
It seems that your feature âDo Get Webstorage Aâ does not work, when âstateâ = âany state not default webstorage Aâs valueâ:
It works when I use default webstorage Aâs value, but I canât use it, because webstorage Aâs [state] is not a list, I have 2 pair of values that I need to save in LocalStorage, so it is impossible for me to use that.
I hope it is not a bug, please, provide an explanation.
The Same Occurring here with me. any solution to this problem?
Iâve used several WebStorages (1 webstorage for 1 value) and then when it was a time to use that value, then I used â:find & replaceâ to delete the quotes.
Please do not understand the purpose and functionality of this plugin yet.
Could someone explain to me in a more simple and practical way?
thankful
Silvio GregĂłrio
I cannot, for the life of me, figure out how to retrieve the data stored in a session.
Is there any sort of tutorial instructions or video that I could take a look at?
Ken
I have the same problem as @ken2 . I have installed the plugin but I cannot not see the workflow actions under element actions in my app.
Hey, Iâm using the Local Storage option for an API token also. Iâm finding that when I close the browser and re-open it, the Local Storage wipes and doesnât save the value. Doesnât this defeat the purpose of Local Storage. I might as well be using Session storage. Wondering if youâre experiencing anything similar?
@Benji any thoughts on this?
Jacob
I am getting this error when trying to clear web storage::
i have the same problem as @mghatiya . i read all the blog but i figured out that no one has answered of this problem.
so please can some one told as why we didnât get the actions of this plugin while we installed it
Same issue here
So, I take it folks would like a plugin for localStorage and sessionStorage that actually works? And that supports Things as well as primitive data types and Lists as well as scalars?
Whatâs it worth to you?
Working on an actually useful localStorage plugin and read this pluginâs code just for yuks. Itâs incredibly naĂŻve and primitive.
It doesnât know how to handle Things nor does it understand Lists (which we already know from comments above), but also only outputs the retrieved key value as text without JSON.parsing it. (The main interface has no type selector field so thatâs all it could ever do. localStorage/sessionStorage can only hold strings (JSON.stringifyâed values), but of course we can restore them to their actual data types by parsing them properly.)
So, for the typical Bubbler, this plugin is less than useless.
Oh man, I just donât see any graceful type-safe way of implementing this amount of polymorphismâŚeven if client side actions could produce outputs. Thatâs not a complaint. I totally get how Bubbleâs client side asynchronous implementation means client side actions cannot produce results.
In general the whole âinterrogate an unknown thing to figure out what type to expectâ seems to be some CS theoretical last bastion of human necessity. While everything else falls to the gods of AI, we all still seem to be writing a lot of code along the lines of âwhen X is run expect a result of type Yâ
I saw from another comment, @aaronsheldon, that you donât think Bubble is strongly-typed. But it is.
In plugins, to use an output (and make its type dynamic)m we use the âApp Typeâ editor selection type, like so:
And now, in setting up an Exposed State (what I call an âoutputâ because itâs easier to say/type/and understand), we can say:
See?
I was being facetious.