nursing-limeN
Refine3y ago
8 replies
nursing-lime

Refresh button not working with GraphQL

Hello,

On the show or edit page I have specified the list of fields to be requested from GraphQl call and that works. But when I hit refresh button a new graphql call is made without requesting any field to be returned and therefore is rejected by the server.

const {queryResult} = useShow({
meta: {
fields: ['id', 'lang', 'type', 'tag'],
},
});

why is clicking on the refresh on edit or show page does not reuse the meta fields already provided?

it seems that is using useOne() hook. but how do i customize that? is there an example that can point me toward.

Thanks
Was this page helpful?