pinafore/routes/_store/obsevers.js
2018-01-28 15:44:33 -08:00

9 lines
290 B
JavaScript

import { updateVerifyCredentialsForInstance } from '../settings/instances/_actions/[instanceName]'
export function observers(store) {
store.observe('currentInstance', (currentInstance) => {
if (currentInstance) {
updateVerifyCredentialsForInstance(currentInstance)
}
})
}