-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creates duplicate columns when changing values (GQL) #31
Comments
Can you please provide the mutation query you're using? |
We do not use GQL to update/create the table. This happens when we are grabbing the table info from the CMS with GQL. |
It happens when you for example update the width on the table columns. Write in 30%. Save and load the page. Then go back and change it to 100%. When I do this it creates a duplicate of the column. |
Thanks for confirming. I've tested that and making all sorts of changes including adding/removing new columns, changing names, widths, alignments, but everything appear to be behaving. Can you provide a screenshot of the response in the GraphiQL explorer? |
The duplicate column does not show up in the GQL explorer but it does show up in the frontend and when using a console.log on the query data. I recreated it again now by changing width 3 times in short succession. After that duplicates will be created on each item you update. |
Hmm, shouldn't the result be the identical? It's all the same querying mechanism. It wouldn't have anything to do with local caching on the client-side or anything (if that's something in your project)? Can you send through a screenshot from your front-end, showing the raw payload data as a network request from the GQL endpoint to illustrate? Just to see what sort of duplicate response looks like. |
Certainly seems like some form of cache or something getting mismatched with that changes data. How're you querying this data from the front end? This doesn't seem to be a GQL query format I'm familiar with (Apollo), which I've just tried out without being able to replicate your results. Strange. |
Description
When using GQL and updating the values on a column field it creates a duplicate item in GQL in columns array. It does not create or show up in CMS just in the GQL query columns result.
Steps to reproduce
Additional info
Additional context
The text was updated successfully, but these errors were encountered: