Skip to content

Limit the Number of History Entries in localStorage or Handle Exceptions for Exceeding Storage Limit #110

Discussion options

You must be logged in to vote

You can use maxHistory to limit the number of history items or history to completely turn off the history feature:

// 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,
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FeiPengDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants