From c845107a613ebf39bf4c89a221e0e718adf8bbb7 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 15 Apr 2018 14:13:45 -0700 Subject: [PATCH] make PseudoVirtualList sync rather than async Attempt to address #92 --- routes/_components/timeline/Timeline.html | 35 +++++++++-------------- routes/_utils/asyncModules.js | 4 --- 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/routes/_components/timeline/Timeline.html b/routes/_components/timeline/Timeline.html index d05fb832..f16ddc9f 100644 --- a/routes/_components/timeline/Timeline.html +++ b/routes/_components/timeline/Timeline.html @@ -22,22 +22,17 @@ on:noNeedToScroll="onNoNeedToScroll()" /> {{else}} - {{#await importPseudoVirtualList}} - {{then PseudoVirtualList}} - - <:Component {PseudoVirtualList} - component="{{VirtualListComponent}}" - realm="{{$currentInstance + '/' + timeline}}" - containerQuery=".container" - :makeProps - items="{{$timelineItemIds}}" - scrollToItem="{{scrollToItem}}" - on:initialized="initialize()" - /> - {{catch error}} -
Component failed to load. Try refreshing! {{error}}
- {{/await}} + + {{/if}}