You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: quickstart.md
+32-11Lines changed: 32 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ export const state = {
35
35
```
36
36
{% endtab %}
37
37
38
-
{% tab title="overmind/index.js" %}
38
+
{% tab title="overmind/index.ts" %}
39
39
```typescript
40
40
import { state } from'./state'
41
41
@@ -44,20 +44,41 @@ export const config = {
44
44
}
45
45
```
46
46
{% endtab %}
47
+
{% endtabs %}
47
48
48
-
{% tab title="index.js" %}
49
-
```typescript
50
-
import { createOvermind } from'overmind'
51
-
import { config } from'./overmind'
49
+
And fire up your application in the browser or whatever environment your user interface is to be consumed in by the users.
50
+
51
+
### VS Code
52
+
53
+
For the best experience you should install the [OVERMIND DEVTOOLS](https://marketplace.visualstudio.com/items?itemName=christianalfoni.overmind-devtools-vscode) extension. This will allow you to work on your application without leaving the IDE at all.
54
+
55
+

56
+
57
+
{% hint style="info" %}
58
+
If you are using the **Insiders** version of VSCode the extension will not work. It seems to be some extra security setting.
59
+
{% endhint %}
60
+
61
+
### Devtool app
52
62
53
-
const overmind =createOvermind(config)
63
+
Alternatively you can install the standalone application of the devtools. It is highly recommended to install the package [CONCURRENTLY](https://www.npmjs.com/package/concurrently). It allows you to start the devtools as you start your build process:
64
+
65
+
```text
66
+
npm install overmind-devtools concurrently
54
67
```
55
-
{% endtab %}
56
-
{% endtabs %}
57
68
58
-
And fire up your application in the browser or whatever environment your user interface is to be consumed in by the users.
A popular concept introduced by Webpack is [HMR](https://webpack.js.org/concepts/hot-module-replacement/). It allows you to make changes to your code without having to refresh. Overmind automatically supports HMR. That means when **HMR** is activated Overmind will make sure it updates and manages its state, actions and effects. Even the devtools will be updated as you make changes.
0 commit comments