File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.2.3
4+ - Implement hack to work around sveltejs/svelte #4899
5+
36## 0.2.2
47- Support ` Tracker.autorun() ` inside ` onMount() `
58
Original file line number Diff line number Diff line change 11Package . describe ( {
22 name : 'rdb:svelte-meteor-data' ,
3- version : '0.2.2 ' ,
3+ version : '0.2.3 ' ,
44 summary : 'Reactively track Meteor data inside Svelte components' ,
55 git : 'https://github.com/rdb/svelte-meteor-data' ,
66 documentation : 'README.md'
Original file line number Diff line number Diff line change 44 * - Makes the return value usable in {#await} blocks
55 */
66
7- import { current_component } from 'svelte/internal' ;
7+ import { current_component , set_current_component , tick } from 'svelte/internal' ;
8+
9+
10+ const promise = tick ( ) ;
11+ const oldThen = promise . then ;
12+ promise . then = function ( fn ) {
13+ oldThen . call ( promise , ( ) => {
14+ fn ( ) ;
15+ set_current_component ( null ) ;
16+ } ) ;
17+ } ;
818
919_subscribe = Meteor . subscribe ;
1020Meteor . subscribe = function subscribe ( name ) {
You can’t perform that action at this time.
0 commit comments