Site: document that module script variables are not reactive. Closes #3029.

pull/3127/head
pngwn 5 years ago
parent f06f718638
commit e0ac393a76

@ -176,6 +176,8 @@ You can `export` bindings from this block, and they will become exports of the c
You cannot `export default`, since the default export is the component itself. You cannot `export default`, since the default export is the component itself.
> Variables defined in `module` scripts are not reactive, reassigning them will not trigger a rerender even though the variable itself will update.
```html ```html
<script context="module"> <script context="module">
let totalComponents = 0; let totalComponents = 0;

Loading…
Cancel
Save