aboutsummaryrefslogtreecommitdiff
path: root/src/hocs/with_subscription
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-04-25 12:50:17 +0300
committerHenry Jameson <me@hjkos.com>2021-04-25 12:50:17 +0300
commit76a2e6befb3aea6e890bb3c2e001a4635d05091a (patch)
tree1e7c422473eeb60962829055dccccc3f77a1002a /src/hocs/with_subscription
parent1f5f612163bd1c359212c2e6832806f0dd606977 (diff)
remove Vue.component from hooks
Diffstat (limited to 'src/hocs/with_subscription')
-rw-r--r--src/hocs/with_subscription/with_subscription.jsx (renamed from src/hocs/with_subscription/with_subscription.js)5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/hocs/with_subscription/with_subscription.js b/src/hocs/with_subscription/with_subscription.jsx
index b1244276..7e590f73 100644
--- a/src/hocs/with_subscription/with_subscription.js
+++ b/src/hocs/with_subscription/with_subscription.jsx
@@ -1,4 +1,3 @@
-import Vue from 'vue'
import isEmpty from 'lodash/isEmpty'
import { getComponentProps } from '../../services/component_utils/component_utils'
import './with_subscription.scss'
@@ -22,7 +21,7 @@ const withSubscription = ({
const originalProps = Object.keys(getComponentProps(WrappedComponent))
const props = originalProps.filter(v => v !== childPropName).concat(additionalPropNames)
- return Vue.component('withSubscription', {
+ return {
props: [
...props,
'refresh' // boolean saying to force-fetch data whenever created
@@ -88,7 +87,7 @@ const withSubscription = ({
)
}
}
- })
+ }
}
export default withSubscription