Skip to content

Commit

Permalink
Update Form component to include 'x.data' in dependency array for dyn…
Browse files Browse the repository at this point in the history
…amic title calculation
  • Loading branch information
trheyi committed Dec 11, 2024
1 parent 49e2c08 commit 4bfc1e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/xgen/components/base/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ const Index = (props: Component.FormComponent) => {
}

return page_title_prefix + x.setting.name
}, [page_title_prefix, x.setting.name, x.type, x.setting?.config?.viewTitle, x.setting?.config?.editTitle])
}, [
page_title_prefix,
x.setting.name,
x.type,
x.setting?.config?.viewTitle,
x.setting?.config?.editTitle,
x.data
])

const onFormBack = useMemoizedFn(() => {
if (onBack) {
Expand Down

0 comments on commit 4bfc1e5

Please sign in to comment.