Fixes #12975. When editing autosave-enabled documents through the join field, the document drawer closes unexpectedly on every autosave interval, making it nearly impossible to use. This is because as of #12842, the underlying relationship table re-renders on every autosave event, remounting the drawer each time. The fix is to lift the drawer out of table's rendering tree and into the join field itself. This way all rows share the same drawer, whose rendering lifecycle has been completely decoupled from the table's state. Note: this is very similar to how relationship fields achieve similar functionality. This PR also adds jsdocs to the `useDocumentDrawer` hook and strengthens its types. --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1210906078627353
36 lines
878 B
TypeScript
36 lines
878 B
TypeScript
export const categoriesSlug = 'categories'
|
|
|
|
export const categories2Slug = 'categories-2'
|
|
|
|
export const postsSlug = 'posts'
|
|
|
|
export const hiddenPostsSlug = 'hidden-posts'
|
|
|
|
export const uploadsSlug = 'uploads'
|
|
|
|
export const localizedPostsSlug = 'localized-posts'
|
|
|
|
export const localizedCategoriesSlug = 'localized-categories'
|
|
|
|
export const restrictedPostsSlug = 'restricted-posts'
|
|
|
|
export const categoriesJoinRestrictedSlug = 'categories-join-restricted'
|
|
|
|
export const collectionRestrictedSlug = 'collection-restricted'
|
|
|
|
export const restrictedCategoriesSlug = 'restricted-categories'
|
|
|
|
export const categoriesVersionsSlug = 'categories-versions'
|
|
|
|
export const versionsSlug = 'versions'
|
|
|
|
export const collectionSlugs = [
|
|
categoriesSlug,
|
|
categoriesVersionsSlug,
|
|
postsSlug,
|
|
localizedPostsSlug,
|
|
localizedCategoriesSlug,
|
|
restrictedPostsSlug,
|
|
restrictedCategoriesSlug,
|
|
]
|