Limit the Number of History Entries in localStorage or Handle Exceptions for Exceeding Storage Limit #110
Answered
by
adamberecz
FeiPengDev
asked this question in
Questions
-
In the environment we are using, this exception occurs after operating on a large form in the form builder for a while. How can I limit the number of entries saved to localStorage for history, or is there any exception handling for scenarios where the localStorage exceeds its maximum storage limit? |
Beta Was this translation helpful? Give feedback.
Answered by
adamberecz
Feb 20, 2025
Replies: 1 comment
-
You can use // builder.config.js
import { defineConfig } from '@vueform/builder'
export default defineConfig({
/**
* Whether it should store history.
*/
history: true,
/**
* The maximum number of history items to store, `-1` for unlimited.
*/
maxHistory: -1,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FeiPengDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
maxHistory
to limit the number of history items orhistory
to completely turn off the history feature: