expose onUpdateHash