1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-09 07:58:43 +01:00

12 lines
336 B
JavaScript
Raw Normal View History

import { updateVerifyCredentialsForInstance } from '../_actions/instances'
import { updateLists } from '../_actions/lists'
2018-01-28 12:51:48 -08:00
2018-02-08 22:29:29 -08:00
export function observers (store) {
2018-01-28 12:51:48 -08:00
store.observe('currentInstance', (currentInstance) => {
2018-01-28 15:44:33 -08:00
if (currentInstance) {
updateVerifyCredentialsForInstance(currentInstance)
updateLists()
2018-01-28 15:44:33 -08:00
}
2018-01-28 12:51:48 -08:00
})
2018-02-08 22:29:29 -08:00
}