You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/frontend/src/Utilities/pagePopulator.js

18 lines
336 B

let currentPopulator = null;
export function registerPagePopulator(populator) {
currentPopulator = populator;
}
export function unregisterPagePopulator(populator) {
if (currentPopulator === populator) {
currentPopulator = null;
}
}
export function repopulatePage() {
if (currentPopulator) {
currentPopulator();
}
}