Added caching of loaded editor instance

This commit is contained in:
Tom Moor
2019-01-19 01:31:34 -08:00
parent 72d8abe069
commit bfd32843ff
7 changed files with 31 additions and 3 deletions

View File

@ -18,6 +18,10 @@ type Props = {
class NewDocumentMenu extends React.Component<Props> {
@observable redirectTo: ?string;
componentDidUpdate() {
this.redirectTo = undefined;
}
handleNewDocument = collection => {
this.redirectTo = newDocumentUrl(collection);
};