Skip to content

Commit 5345a34

Browse files
committed
refactor(plugin-grid): move ObjectGrid's row load into a sibling hook (slice 5)
The invalidation nonce, the async load effect, the host findParams reset and the page-1 reset move verbatim into useObjectGridRowLoad, called where the block stood, so hook order is unchanged. toOrderByClause moves with its only caller. gridArrayArmOrderby-8973 reads ObjectGrid.tsx and the new module joined, since its $orderby pin moved while parseSchemaSort stays. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bdrd2yH4eqnz2QobtN3haE
1 parent 14f3099 commit 5345a34

4 files changed

Lines changed: 780 additions & 684 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
---
4+
5+
refactor(plugin-grid): `ObjectGrid`'s row load moves into a sibling hook
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The row load of the `ObjectGrid` component moves verbatim out of `ObjectGrid.tsx` into `useObjectGridRowLoad` (`objectGridRowLoad.ts`): the data-invalidation nonce, the one async load effect, the host `findParams` reset of "select all matching" and the page-1 reset on a query change. `toOrderByClause`, whose only caller is the load effect, moves with it. `ObjectGrid` calls the hook where the block stood, so its hook order, its queries and its rendered output do not change. No name is renamed, and the package entry is unchanged.
11+
12+
What to do: nothing.

0 commit comments

Comments
 (0)