workfloworchestrator / orchestrator-ui-library

Component library for the orchestrator-ui (v2) which is published in npm
6 stars 3 forks source link

Add loading spinner on form fields that dynamically fetch data #1053

Open Georgi2704 opened 3 weeks ago

Georgi2704 commented 3 weeks ago

A small feature that we can add to the form fields, to make it more clear whenever the field is fetching data. We can also set it to disabled when isFetching. With RTK we can just use the isFetching variable.

For example: const {data, isFetching, error: fetchError} = useVlansByServicePortQuery(...)

image