[RFC] Global loading replacement #48645
zombieJ
announced in
RFCs - archive
Replies: 3 comments 10 replies
-
<ConfigProvider
spin={{ indicator: ReactNode }}
>
...
</ConfigProvider> How about that? |
Beta Was this translation helpful? Give feedback.
5 replies
-
is |
Beta Was this translation helpful? Give feedback.
1 reply
-
loadingComponent: (props: { loading: boolean, componentName: string }) => ReactElement loadingComponent={Spin} const Spin: FC = (props) => { |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📋 RFC
Summary
Support customize loading effect to replace with Spin or other loading placeholder if exist:
Basic example
Motivation
For the blog Extends Theme provide a css way to replace the loading effect but it has the limitation of must be in CSS way and not support some magic effect (e.g. Dribble: loading search).
It should provide a simple way to support the extension.
Detailed
renderLoading
is similar asrenderEmpty
type style:When the ConfigProvider config
renderLoading
, it will replace all the loading related content on the UI.Drawbacks
N/A
Adoption strategy
feature in minor
Beta Was this translation helpful? Give feedback.
All reactions