diff --git a/config-static/README.md b/config-static/README.md index bec9b8ec..e77f4506 100644 --- a/config-static/README.md +++ b/config-static/README.md @@ -34,4 +34,4 @@ The `wodinStatic.ts` script is the entrypoint for run time wodin static. This sc 1. Queries the document and finds all `data-w-store` tags (data tags that define what stores to use for that component). This is a list of all the stores the user has used in the HTML document and the values should match the `` folder names in the user's config. 1. Gets the `stores//config.json` and `stores//model.json` for only the stores the user has used in the page. 1. For each `` the user has used in the page, it initialises the store with the config, runners (using the global variables), model and finally runs the model with the runners. This initialisation was the responsibility of on mount hook of components like `WodinSession.vue` but we no longer mount those components so we have to manually initialise the store. Note: the api service is disabled in the wodin static build so returns undefined for all responses, this may break things if you want to mount certain components that do api requests. We intend to fix this soon. -1. For each `` we loop over the components we want to mount. We define a selector for each one in `componentsAndSelectors` function and query the DOM for these selectors making sure they have `data-w-store` tag with value ``. We mount the component to the correct selector with the correct store. +1. For each `` we loop over the components we want to mount. We define a selector for each one in `componentsAndSelectors` function and query the DOM for these selectors making sure they have `data-w-store` tag with value ``. We mount the component to the correct selector with the correct store. `index.html` in this folder includes examples of all supported components.