Proposal: a data
feature for sharing information across extensions
#3039
Labels
data
feature for sharing information across extensions
#3039
What pain point are you perceiving?
The objective of this proposal is to introduce a
data
feature that allows us to share information across extensions using a key-value pairs object.Describe the solution you'd like
Introduce a
data
object that can be accessed within any extensionThe
data
is essentially a key-value pairs object where extensions can set and retrieve dataExtensions can use a simple API to set and retrieve data in the
data
object through thewalkTokens
, pre/post hooks, and customextensions
fields (specifically,tokenizer
andrenderer
)An extension can set data like this:
Then we can retrieve the data set:
The
data
will be scoped to the current Marked instance to prevent conflicts between extensions in different instancesBenefits:
The text was updated successfully, but these errors were encountered: