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 1
1
# Changelog
2
2
3
+ ## 0.2.3
4
+ - Implement hack to work around sveltejs/svelte #4899
5
+
3
6
## 0.2.2
4
7
- Support ` Tracker.autorun() ` inside ` onMount() `
5
8
Original file line number Diff line number Diff line change 1
1
Package . describe ( {
2
2
name : 'rdb:svelte-meteor-data' ,
3
- version : '0.2.2 ' ,
3
+ version : '0.2.3 ' ,
4
4
summary : 'Reactively track Meteor data inside Svelte components' ,
5
5
git : 'https://github.com/rdb/svelte-meteor-data' ,
6
6
documentation : 'README.md'
Original file line number Diff line number Diff line change 4
4
* - Makes the return value usable in {#await} blocks
5
5
*/
6
6
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
+ } ;
8
18
9
19
_subscribe = Meteor . subscribe ;
10
20
Meteor . subscribe = function subscribe ( name ) {
You can’t perform that action at this time.
0 commit comments