Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/components/VMapbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,6 @@ export const props = {

export default {
name: 'v-mapbox',

// @QUESTION :: Why is this back? Now the whole map is reactive again..
data () {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed this before, but this caused several issues. Please consult with Cindy. If you don't initialize it from the data section it should be set on the object.
You can try to set it as a "normal" property of the object. Then you can access it through $options, see [1]. We also tried this before but this also gave synchronisation issues.

[1] https://vuejs.org/v2/api/#vm-options

return {
map: null
}
},

props,

provide () {
Expand Down