Skip to content

Commit 14b09c5

Browse files
committed
format md files
1 parent 12d89b7 commit 14b09c5

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Diff for: LICENSE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
MIT License
22

3-
Copyright (c) 2021 Robert Soriano
3+
Copyright (c) 2022 Robert Soriano
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

77
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
88

9-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ import { createGlobalObservable, useLocalObservable } from 'mobx-vue-lite'
8888

8989
export const useGlobalObservable = createGlobalObservable(() => {
9090
return useLocalObservable(() => ({
91-
count: 0,
92-
get double() {
93-
return this.count * 2
94-
},
95-
increment() {
96-
this.count++
97-
}
98-
}))
91+
count: 0,
92+
get double() {
93+
return this.count * 2
94+
},
95+
increment() {
96+
this.count++
97+
},
98+
}))
9999
})
100100
```
101101

@@ -121,20 +121,20 @@ You can watch the state and its changes through Vue's watch:
121121
```ts
122122
import { watch } from 'vue'
123123
const state = useLocalObservable(() => ({
124-
count: 0,
125-
increment() {
126-
this.count++
127-
}
124+
count: 0,
125+
increment() {
126+
this.count++
127+
},
128128
}))
129129

130130
// watch the whole state
131131
watch(state, (value) => {
132-
console.log(value)
132+
console.log(value)
133133
})
134134

135135
// watch part of a state
136136
watch(() => state.value.count, (count) => {
137-
console.log(count)
137+
console.log(count)
138138
})
139139
```
140140

@@ -165,7 +165,7 @@ To use the `<Observer />` component globally a Nuxt 3 app, add this to your nuxt
165165
import { defineNuxtConfig } from 'nuxt3'
166166

167167
export default defineNuxtConfig({
168-
buildModules: ['mobx-vue-lite/module']
168+
buildModules: ['mobx-vue-lite/module'],
169169
})
170170
```
171171

0 commit comments

Comments
 (0)