Repository navigation
Bump react-admin to 5.15.5 - #706
Open
erwanMarmelab wants to merge 7 commits into
Open
erwanMarmelab wants to merge 7 commits into
erwanMarmelab wants to merge 7 commits into
Conversation
Keep API Platform Admin compatible with recent react-admin releases. The bump pulls MUI 9 and a newer TanStack Query, which required: - passing the mutation context to onSuccess/onError in useOnSubmit - replacing removed MUI system props with sx in stories - using ESM module mocking since react-hotkeys-hook is now ESM-only - updating nwsapi so jsdom can parse MUI 9 selectors
erwanMarmelab
force-pushed
the
bump-react-admin
branch
from
November 5, 2026 16:15
07cf2d3 to
964679d
Compare
slax57
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
API Platform Admin still depends on react-admin
^5.8.3. That blocks compatibility with recent react-admin releases and their new features.Solution
Bump react-admin to
^5.15.5. The new version brings MUI 9 and TanStack Query 5.106, which required a few changes:useOnSubmit: pass theMutationFunctionContext({ client, meta }), now the 4th argument ofonSuccess/onErrorgapandwidth, so they move tosxuseOnSubmit.test.tsx:react-hotkeys-hookv5, a react-admin dependency, is ESM-only, so the test usesjest.unstable_mockModuleinstead ofjest.requireActualyarn.lock: bumpnwsapito 2.2.28 so jsdom can parse the CSS selectors MUI 9 generates@api-platform/admindoesn't pin MUI, so new installs will now resolve MUI 9 through react-admin.yarn build,yarn lintandyarn testpass locally.