{"id":22750228,"url":"https://github.com/webix-hub/jet-restate","last_synced_at":"2026-02-11T06:02:14.634Z","repository":{"id":42901384,"uuid":"238665869","full_name":"webix-hub/jet-restate","owner":"webix-hub","description":"Reactive state for Webix Jet apps","archived":false,"fork":false,"pushed_at":"2022-03-26T10:41:41.000Z","size":114,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T22:59:40.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://webix.com/webixjet/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webix-hub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-06T10:46:42.000Z","updated_at":"2020-12-03T10:50:23.000Z","dependencies_parsed_at":"2022-09-19T15:51:05.909Z","dependency_job_id":null,"html_url":"https://github.com/webix-hub/jet-restate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webix-hub/jet-restate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fjet-restate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fjet-restate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fjet-restate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fjet-restate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webix-hub","download_url":"https://codeload.github.com/webix-hub/jet-restate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fjet-restate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-11T04:13:06.045Z","updated_at":"2026-02-11T06:02:14.619Z","avatar_url":"https://github.com/webix-hub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Reactive state for Webix Jet apps\n====\n\n## Why it is necessary\n\nWebix Jet provides two ways to cross-view communication\n\n- events\n- view parameters, \n\nReactive state provides a combination of both, with ability to maintain state ( as parameters ) and ability without predefined source/target ( as events ) \n\n## How to use\n\n```js\nimport { createState, link } from \"jet-restate\";\n...\nconst state = createState({\n    mode: config.mode || \"grid\",\n    selectedItem: [],\n    search: \"\",\n    path: config.path || \"/\",\n    clipboard: null,\n});\n\nthis.show(\"child\", { target:\"left\", params: { state }})\nthis.show(\"child\", { target:\"right\", params: { state }})\n```\n\nnow in any of child views\n\n```js\n    const state = this.getParam(\"state\");\n    //change state\n    state.mode = newValue;\n    //react on state changes\n    this.on(state.$changes, \"mode\", value =\u003e {\n        this.getRoot().setValue(value);\n    });\n```\n\n#### Extending state\n\nIt possible to add new vars to the state.\nThere is no way to remove them though.\n\n```js\nconst state = createState({ mode:\"grid\" });\nstate.$extend({ path:\"/\" })\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebix-hub%2Fjet-restate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebix-hub%2Fjet-restate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebix-hub%2Fjet-restate/lists"}