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
Convert query value from internal Immutable format to JS format.
197
-
You can use it to save value on backend in `onChange` callback of `<Query>`.
197
+
You can use it to save value on backend in `onChange` callback of `<Query>`.
198
+
Tip: Use `light = false` in case if you want to store query value in your state in JS format and pass it as `value` of `<Query>` after applying `loadTree()` (which is not recommended because of double conversion). See issue [#190](https://github.com/ukrbublik/react-awesome-query-builder/issues/190)
198
199
#### loadTree (jsValue, config) -> Immutable
199
200
Convert query value from JS format to internal Immutable format.
200
201
You can use it to load saved value from backend and pass as `value` prop to `<Query>` (don't forget to also apply `checkTree()`).
@@ -205,7 +206,7 @@ Wrapping in `div.query-builder-container` is necessary if you put query builder
205
206
#### isValidTree (immutableValue) -> Boolean
206
207
If `showErrorMessage` in config.settings is true, use this method to check is query has bad values.
0 commit comments