Skip to content

Instantly share code, notes, and snippets.

@btakita btakita/child-store.html
Last active May 4, 2018

Embed
What would you like to do?
<script>
export default {
computed: {
config__issues: ({ store, $config__issues }) => (store ? store.get().config__issues : $config__issues) || {},
labels: ({ config__issues }) => config__issues.labels || {},
order: ({ config__issues }) => config__issues.order || [],
titles: ({ bar__issues }) => ( bar__issues && bar__issues.titles) || {},
values: ({ bar__issues }) => ( bar__issues && bar__issues.values) || {},
representations: ({ bar__issues }) => ( bar__issues && bar__issues.representations) || {},
weights: ({ bar__issues }) => ( bar__issues && bar__issues.weights) || {},
bar__issues: ({store, $bar__issues}) => store ? store.get().bar__issues : $bar__issues
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.