From 5b8c000d459c3aec993bf2b03a851898712bdb18 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 4 Dec 2017 21:41:03 +0000 Subject: [PATCH] Don't recreate views when switching tabs. --- src/JournalView.tsx | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/src/JournalView.tsx b/src/JournalView.tsx index c913587..6bdcfaf 100644 --- a/src/JournalView.tsx +++ b/src/JournalView.tsx @@ -87,32 +87,23 @@ export class JournalView extends React.Component { } - /> + > +

{collectionInfo.displayName}

+ {itemsView} +
} - /> + > +

{collectionInfo.displayName}

+ ; +
} /> -

{collectionInfo.displayName}

- { - return ; - } - } - /> - { - return itemsView; - } - } - /> ); }