repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
DRVDOC-1129: Clicking on editor margins should focus editor
[ProtonMail-WebClient.git]
/
packages
/
account
/
initialModelState.ts
blob
e2b6efa0bab5398b98415f00ec4f5fa37475bc30
1
import type { ModelState } from './interface';
2
3
export const getInitialModelState = <T>(value?: T | undefined): ModelState<T> => {
4
return {
5
value,
6
error: undefined,
7
meta: {
8
fetchedAt: 0,
9
fetchedEphemeral: true,
10
},
11
};
12
};