(status: REWRITING it into different project) incremental runtime that bring both simplicity and power into webdev (buildless, cross-language, data-driven)
import { vary, keep, persist } from "https://esm.run/wiles/decorator" // ignore data-persist attribute
export default class {
@vary accessor start = 0 // swap databank with new array
@keep accessor end = 10 // keep databank on every navigation or append if page/component/scope not yet cached
@persist accessor total: number // stored in IndexDB on each eventful write
accessor count = 1 // behavior depend on data-persist attribute
}
or without decorator (not sure if I gonna support this 🤔)
Control the lifetime of the class. Whatever it should persist across page or reset on every page navigation.
mass control
or make it default
granular control
or without decorator (not sure if I gonna support this 🤔)
Requirement:
40
15