Skip to content

Conversation

iFlameing
Copy link
Member

No description provided.

(state) => state.form.global?.[field],
);
const formData = useSelector<FormState, T>((state) => {
return state.form.global?.[field];
Copy link
Member Author

@iFlameing iFlameing Sep 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iFlameing we don't need this change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is just for me to remove the unnecessary changes.

};
};

export function useLiveData<T>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to document it in the docs. Please ask me whatever you need.

(state) => state.form.global?.[field],
);
const formData = useSelector<FormState, T>((state) => {
return state.form.global?.[field];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

const location = useLocation();
const addMode = location?.pathname?.endsWith('/add');
const current = behavior
? content?.['@components']?.inherit?.[behavior]?.data?.[field]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you removed the cast.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added once again.

@iFlameing
Copy link
Member Author

@sneridagh It is also ready for merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants