Skip to content

Feature Idea: Load & save params to localStorage as an alternative default on page load #606

Answered by franky47
tylersayshi asked this question in Ideas
Discussion options

You must be logged in to vote

A thing that's been on the Roadmap for a while is supporting functions for the default value.

This could help with this use-case, though it raises the question of when the function should run:

  • Once at initialisation, and never again, like a function argument to React.useState
  • Every time the default value is actually needed (eg: when the query is cleared or contains an invalid value that the parser cannot resolve)
  • On every render (could be a performance pit)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@tylersayshi
Comment options

@tylersayshi
Comment options

@franky47
Comment options

Answer selected by tylersayshi
Comment options

You must be logged in to vote
3 replies
@franky47
Comment options

@mshafir
Comment options

@anaclumos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants