Feature Request: Enhancing <CheckForApplicationUpdate>
for module federation apps
#9432
Labels
<CheckForApplicationUpdate>
for module federation apps
#9432
Is your feature request related to a problem? Please describe.
Our application uses the module federation design but the
<CheckForApplicationUpdate>
can only check for a single url. It cannot check multiple urls for each moduleAdditionally the fetch function in getHashForUrl
react-admin/packages/ra-core/src/util/useCheckForApplicationUpdate.ts
Line 61 in f030350
We would also like an additional callback function handleApplicationUpdate passed into the
<CheckForApplicationUpdate>
so we can customize the button click behaviorreact-admin/packages/ra-ui-materialui/src/layout/ApplicationUpdatedNotification.tsx
Line 17 in f030350
Describe the solution you'd like
A clear and concise description of what you want to happen.
Enhance the
<CheckForApplicationUpdate>
interface to make url support an array of strings, add the fetch options object, and add the callback.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Stack a bunch of CheckForApplicationUpdate in the layout, each checking for a single url. However that would not solve problem 2 and 3.
Hope these enhancement can benefit other people so they don't have to reimplement the react hooks.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: