Closed coffee-cup closed 4 years ago
In the local plugin action ctx, ctx.local is a proxy that will update the browsers local storage whenever anything on it changes. However, updating anything nested on ctx.local will not update browser local storage.
ctx.local
For example,
const myAction = () => { local.a.b = "foo"; }
will not update local storage, but
const myAction = () => { const a = local.a; a.b = "foo"; local.a = a; }
will
Closed via #158
In the local plugin action ctx,
ctx.local
is a proxy that will update the browsers local storage whenever anything on it changes. However, updating anything nested onctx.local
will not update browser local storage.For example,
will not update local storage, but
will