storyblok / field-plugin

Create and deploy Storyblok Field Plugin
https://www.storyblok.com/docs/plugins/field-plugins/introduction
25 stars 3 forks source link

fix(lib): remove SetStateAction pattern #258

Closed eunjae-lee closed 1 year ago

eunjae-lee commented 1 year ago

What?

We're getting rid of the state setter pattern (a.k.a. SetStateAction type) in preparation to make the library to not store the state anymore.

The Visual Editor will provide the full state as a return of any request sent from the library. Thus, the library no longer needs to keep and merge the state locally.

Why?

JIRA: EXT-1917

How to test? (optional)

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plugin-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2023 2:45pm
eunjae-lee commented 1 year ago

Would we address the templates later?

There was no action pattern(?) found in the templates :)