Skip to content

Conversation

heath-freenome
Copy link
Member

Reasons for making this change

There were still some places were the formContext was being obtained from or passed as props

  • In @rjsf/antd replaced getting formContext from props with getting it from the registry
  • In @rjsf/core removed the passing of formContext as props as well as replaced getting formContext from props with getting it from the registry
  • In @rjsf/daisyui removed the passing of formContext as props in the mocks
  • In @rjsf/mui removed the getting of formContext from the props
  • In playground replaced a few IdSchema uses with FieldPathId
  • In @rjsf/primereact removed the getting of formContext from the props
  • In @rjsf/shadcn removed the passing of formContext as props in the mocks and added missing globalFormOptions in the registry mock

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

There were still some places were the `formContext` was being obtained from or passed as props

- In `@rjsf/antd` replaced getting `formContext` from props with getting it from the registry
- In `@rjsf/core` removed the passing of `formContext` as props as well as replaced getting `formContext` from props with getting it from the registry
- In `@rjsf/daisyui` removed the passing of `formContext` as props in the mocks
- In `@rjsf/mui` removed the getting of `formContext` from the props
- In `playground` replaced a few `IdSchema` uses with `FieldPathId`
- In `@rjsf/primereact` removed the getting of `formContext` from the props
- In `@rjsf/shadcn` removed the passing of `formContext` as props in the mocks and added missing `globalFormOptions` in the registry mock
@nickgros nickgros merged commit db40580 into rjsf-team:main Oct 14, 2025
4 checks passed
@heath-freenome heath-freenome deleted the remove-form-context branch October 14, 2025 16:04
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