Replies: 1 comment 1 reply
-
Sounds like it’d make an interesting plugin, not something I’d ever reach for though. Maybe a real-world example would help clarify the utility of such a plugin? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When setting a signal with data-store it can be useful to encode the string, especially when it contains quotes. If this is used by data-model the data in the input will be unreadable.
I suggest a
data-model.b64
(possible with uint8array) and maybe adata-model.uricomponent
so that the data can be encoded / decoded automatically when it goes from / to the input / signal.For the record, escaping quotes like
'
when serialising data into the data-store works fine with data-model, but there might still be a use case for encoding the data (like handling newlines).Beta Was this translation helpful? Give feedback.
All reactions