sapcc / juno

Monorepo for the Juno microfrontend framework, microfrontend apps, design system and component library
Apache License 2.0
7 stars 2 forks source link

[supernova] generic and configurable API worker and display silences within the alerts. Form for silences added #363

Closed ArtieReus closed 1 year ago

ArtieReus commented 1 year ago

This implementation is based on the useQuery from react-query pattern. The developer configures a promise which will be use to fetch when specific conditions are met. This pattern can be used for different api without having to duplicate code or doing inharitance.