diff options
| author | seven <sjang8762@outlook.com> | 2019-12-12 12:13:31 +0500 |
|---|---|---|
| committer | seven <sjang8762@outlook.com> | 2019-12-12 12:13:31 +0500 |
| commit | b973ee5915ca9a2c79d9523286f42aee4b1a7db7 (patch) | |
| tree | 637b6d97fafd607940b03293f4ac833171b8f14d /src/hocs/with_subscription/with_subscription.js | |
| parent | d7bc1aff1d4c52c038457fe7650ffb793dfc4618 (diff) | |
must use h in higher babel-plugin-transform-vue-jsx
Diffstat (limited to 'src/hocs/with_subscription/with_subscription.js')
| -rw-r--r-- | src/hocs/with_subscription/with_subscription.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hocs/with_subscription/with_subscription.js b/src/hocs/with_subscription/with_subscription.js index 91fc4cca..1775adcb 100644 --- a/src/hocs/with_subscription/with_subscription.js +++ b/src/hocs/with_subscription/with_subscription.js @@ -49,7 +49,7 @@ const withSubscription = ({ } } }, - render (createElement) { + render (h) { if (!this.error && !this.loading) { const props = { props: { @@ -59,7 +59,7 @@ const withSubscription = ({ on: this.$listeners, scopedSlots: this.$scopedSlots } - const children = Object.entries(this.$slots).map(([key, value]) => createElement('template', { slot: key }, value)) + const children = Object.entries(this.$slots).map(([key, value]) => h('template', { slot: key }, value)) return ( <div class="with-subscription"> <WrappedComponent {...props}> |
