From 290cbfac2776356509a354e421cb57cfc99039ca Mon Sep 17 00:00:00 2001 From: etowahadams Date: Mon, 17 Jun 2024 17:50:16 -0400 Subject: [PATCH] Documentation for react option (#103) feat: reactive option --- docs/js-api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/js-api.md b/docs/js-api.md index 46ac88d..a178928 100644 --- a/docs/js-api.md +++ b/docs/js-api.md @@ -22,6 +22,7 @@ import { GoslingComponent} from 'gosling.js'; | `id` | string | Id of the component | | `className` | string | CSS class to apply to the component | | `theme` | object | See [themes](../../themes) | +| `reactive` | boolean | Default: `true`. If `spec` is updated, the existing tracks will keep their zoom position | | `urlToFetchOptions` | object | Each object follows the form `"{[url: string]: RequestInit}"` where [RequestInit](https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.requestinit.html) is also an object. When fetching data from URL which matches a key in this object, Gosling will use the corresponding `RequestInit` when making the fetch request. |