Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

  1. config is
    image

image

I'm glad for your reply

You must be logged in to vote

I would recommend the json_without_ids format for query persistence only, like saving to a database for retrieval at a later time. For live, in-memory updates, you shouldn't have to use formatQuery at all. Just store the actual JSON query object passed to the onQueryChange callback.

Replies: 2 comments · 3 replies

Comment options

I'm pretty sure this has to do with your key prop, but I'd need to see a minimal reproduction. Can you replicate the issue in a small project or sandbox? See here.

You must be logged in to vote
1 reply
@WebTianJie
Comment options

Thank you for your answer, it gave me some ideas,

Comment options

@jakeboone02
Thank you for your answer. I have identified the reason

  1. When I use this method to save data, I will lose the unique ID
    image

When I edit and reassign values to components, I will lose the unique ID

  1. When I use this method to save data
    image

I wouldn't have encountered the above problems

You must be logged in to vote
2 replies
@jakeboone02
Comment options

I would recommend the json_without_ids format for query persistence only, like saving to a database for retrieval at a later time. For live, in-memory updates, you shouldn't have to use formatQuery at all. Just store the actual JSON query object passed to the onQueryChange callback.

Answer selected by WebTianJie
@WebTianJie
Comment options

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.