1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-05 16:01:42 +01:00
Pinafore-Web-Client-Frontend/routes/_store/observers.js

11 lines
334 B
JavaScript

import { updateVerifyCredentialsForInstance } from '../_actions/instances'
import { updateLists } from '../_actions/lists'
export function observers(store) {
store.observe('currentInstance', (currentInstance) => {
if (currentInstance) {
updateVerifyCredentialsForInstance(currentInstance)
updateLists()
}
})
}