fix(ui): stale server components when rows are moved (#9410)
We need to trigger server component re-rendering for moving rows, just like we do for adding or deleting rows. Video of the issue: https://github.com/user-attachments/assets/32fb31c5-f304-4082-8028-59a6ad723fbe
This commit is contained in:
@@ -367,7 +367,7 @@ export const seed = async (_payload: Payload) => {
|
||||
collection: lexicalLocalizedFieldsSlug,
|
||||
data: {
|
||||
title: 'Localized Lexical en',
|
||||
lexicalBlocksLocalized: textToLexicalJSON({ text: 'English text' }) as any,
|
||||
lexicalBlocksLocalized: textToLexicalJSON({ text: 'English text' }),
|
||||
lexicalBlocksSubLocalized: generateLexicalLocalizedRichText(
|
||||
'Shared text',
|
||||
'English text in block',
|
||||
@@ -381,7 +381,7 @@ export const seed = async (_payload: Payload) => {
|
||||
await _payload.create({
|
||||
collection: lexicalRelationshipFieldsSlug,
|
||||
data: {
|
||||
richText: textToLexicalJSON({ text: 'English text' }) as any,
|
||||
richText: textToLexicalJSON({ text: 'English text' }),
|
||||
},
|
||||
depth: 0,
|
||||
overrideAccess: true,
|
||||
@@ -392,7 +392,7 @@ export const seed = async (_payload: Payload) => {
|
||||
id: lexicalLocalizedDoc1.id,
|
||||
data: {
|
||||
title: 'Localized Lexical es',
|
||||
lexicalBlocksLocalized: textToLexicalJSON({ text: 'Spanish text' }) as any,
|
||||
lexicalBlocksLocalized: textToLexicalJSON({ text: 'Spanish text' }),
|
||||
lexicalBlocksSubLocalized: generateLexicalLocalizedRichText(
|
||||
'Shared text',
|
||||
'Spanish text in block',
|
||||
@@ -408,10 +408,7 @@ export const seed = async (_payload: Payload) => {
|
||||
collection: lexicalLocalizedFieldsSlug,
|
||||
data: {
|
||||
title: 'Localized Lexical en 2',
|
||||
lexicalSimple: textToLexicalJSON({
|
||||
text: 'English text 2',
|
||||
lexicalLocalizedRelID: lexicalLocalizedDoc1.id,
|
||||
}),
|
||||
|
||||
lexicalBlocksLocalized: textToLexicalJSON({
|
||||
text: 'English text 2',
|
||||
lexicalLocalizedRelID: lexicalLocalizedDoc1.id,
|
||||
@@ -431,10 +428,7 @@ export const seed = async (_payload: Payload) => {
|
||||
id: lexicalLocalizedDoc2.id,
|
||||
data: {
|
||||
title: 'Localized Lexical es 2',
|
||||
lexicalSimple: textToLexicalJSON({
|
||||
text: 'Spanish text 2',
|
||||
lexicalLocalizedRelID: lexicalLocalizedDoc1.id,
|
||||
}),
|
||||
|
||||
lexicalBlocksLocalized: textToLexicalJSON({
|
||||
text: 'Spanish text 2',
|
||||
lexicalLocalizedRelID: lexicalLocalizedDoc1.id,
|
||||
@@ -479,6 +473,24 @@ export const seed = async (_payload: Payload) => {
|
||||
text: 'text',
|
||||
},
|
||||
})
|
||||
|
||||
await _payload.create({
|
||||
collection: 'LexicalInBlock',
|
||||
data: {
|
||||
blocks: [
|
||||
{
|
||||
blockType: 'lexicalInBlock2',
|
||||
blockName: '1',
|
||||
lexical: textToLexicalJSON({ text: '1' }),
|
||||
},
|
||||
{
|
||||
blockType: 'lexicalInBlock2',
|
||||
blockName: '2',
|
||||
lexical: textToLexicalJSON({ text: '2' }),
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export async function clearAndSeedEverything(_payload: Payload) {
|
||||
|
||||
Reference in New Issue
Block a user