mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +01:00
notes on codestyle
This commit is contained in:
parent
908a119dc9
commit
669865f8db
@ -3,6 +3,8 @@
|
||||
|
||||
- methods that return a promise should always use async/await
|
||||
otherwise synchronous errors can get swallowed
|
||||
you can return a promise without awaiting it though.
|
||||
- only named exports, no default exports
|
||||
otherwise it becomes hard to remember what was a default/named export
|
||||
- should we return promises from storage mutation calls? probably not, as we don't await them anywhere. only read calls should return promises?
|
||||
- we don't anymore
|
||||
|
Loading…
Reference in New Issue
Block a user