Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin API to save/get storage #373

Open
HideBa opened this issue Nov 22, 2022 · 0 comments
Open

Plugin API to save/get storage #373

HideBa opened this issue Nov 22, 2022 · 0 comments
Labels

Comments

@HideBa
Copy link
Member

HideBa commented Nov 22, 2022

Leader

User story

Developers need client storage for plug-ins. This allows plug-ins to temporarily persist data and save settings, such as when a page is reopened.

Requirements

Develop Plugin APIs

(data has relationship with plugin's id)

reearth.clientStorage

  • getAsync(key: string): Promise<any | undefined>
  • setAsync(key: string, value: any): Promise
  • deleteAsync(key: string): Promise
  • keysAsync(): Promise<string[]>

Caution: Plugins shouldn't/can't be access to parent localStorage directly since accessToken is stored there.

Examples

https://www.figma.com/plugin-docs/api/figma-clientStorage/

Testing list

  • [ ]
@HideBa HideBa added the PBL label Nov 22, 2022
pyshx pushed a commit that referenced this issue Apr 17, 2023
* upgrade green and yellow

* vite 3-4, etc upgrades

* fix graphql type error

* fix i18next type errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant