pinafore/routes/_store/obsevers.js

7 lines
255 B
JavaScript

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