Merge pull request #196 from Irev-Dev/kurt/195
Refresh cache on mutation by fetching new data in mutation
This commit was merged in pull request #196.
This commit is contained in:
@@ -49,6 +49,13 @@ const UPDATE_PART_MUTATION = gql`
|
|||||||
updatePart: updatePart(id: $id, input: $input) {
|
updatePart: updatePart(id: $id, input: $input) {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
|
description
|
||||||
|
code
|
||||||
|
mainImage
|
||||||
|
userId
|
||||||
|
Reaction {
|
||||||
|
emote
|
||||||
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
userName
|
userName
|
||||||
|
|||||||
@@ -187,9 +187,13 @@ const PartProfile = ({
|
|||||||
{isEditable ? 'Markdown supported' : ''}
|
{isEditable ? 'Markdown supported' : ''}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
id="description-wrap"
|
||||||
name="description"
|
name="description"
|
||||||
className="markdown-overrides rounded-lg shadow-md bg-white px-12 py-6 min-h-md"
|
className="markdown-overrides rounded-lg shadow-md bg-white px-12 py-6 min-h-md"
|
||||||
onClick={() => editorRef?.current?.focusAtEnd()}
|
onClick={(e) =>
|
||||||
|
e?.target?.id === 'description-wrap' &&
|
||||||
|
editorRef?.current?.focusAtEnd()
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<Editor
|
<Editor
|
||||||
ref={editorRef}
|
ref={editorRef}
|
||||||
|
|||||||
Reference in New Issue
Block a user