Skip to content

Feature/async data source cache #2798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

jakobz
Copy link
Contributor

@jakobz jakobz commented Apr 20, 2025

Description:

This PR introduces caching functionality to the AsyncDataSource, allowing two or more Views to reuse the same data.

I've also removed some broken settings into .vscode/launch.json, which prevented running tests with debugger from VSCode.

@jakobz jakobz changed the base branch from main to develop April 21, 2025 10:49
Copy link

Generated by: track-bundle-size
Generated at: Wed, 23 Apr 2025 16:01:57 GMT
Bundle size diff (in kBytes). Not gzipped. Both CSS & JS included.
Baseline: v5.13.1 (2025-02-17)
CI Status: ok

Module Baseline Size
(v5.13.1)
Size Diff Within
Threshold
Threshold
(min - max)
templateApp 680.93 645.15 -35.78
js:-46.67
css:+10.89
🆗 612.83 - 749.02
@epam/app 5790.72 5961.14 +170.42
js:+161.19
css:+9.23
🆗 5211.64 - 6369.79
@epam/draft-rte 52.94 53.09 +0.15
js:+0.12
css:+0.03
🆗 47.65 - 58.24
@epam/electric 4.58 4.61 +0.02
js:+0.01
css:+0.01
🆗 4.12 - 5.04
@epam/promo 55.32 55.42 +0.11
js:+0.01
css:+0.1
🆗 49.79 - 60.85
@epam/uui-extra 0.21 0.21 0
js:0
css:0
🆗 0.19 - 0.23
@epam/loveship 90.46 90.64 +0.18
js:+0.06
css:+0.12
🆗 81.41 - 99.51
@epam/uui-components 253.68 252.7 -0.97
js:-0.98
css:+0.01
🆗 228.31 - 279.05
@epam/uui-core 317.54 317.95 +0.42
js:+0.42
css:0
🆗 285.79 - 349.29
@epam/uui-db 41.63 41.63 0
js:0
css:0
🆗 37.47 - 45.8
@epam/uui-docs 175.48 175.37 -0.12
js:-0.12
css:+0.01
🆗 157.94 - 193.04
@epam/uui-editor 173.66 173.88 +0.21
js:+0.05
css:+0.16
🆗 156.29 - 191.03
@epam/uui-timeline 75.49 75.5 +0
js:+0
css:+0
🆗 67.94 - 83.04
@epam/uui 481.54 494.66 +13.12
js:+1.92
css:+11.2
🆗 433.39 - 529.7
new sizes (raw)

To set the sizes as a new baseline, you can copy/paste next content to the uui-build/config/bundleSizeBaseLine.json and commit the file.

{
  "version": "6.0.0-beta.0",
  "timestamp": "2025-04-23",
  "sizes": {
    "templateApp": {
      "css": 230274,
      "js": 430354
    },
    "@epam/app": {
      "css": 692317,
      "js": 5411892
    },
    "@epam/draft-rte": {
      "css": 9818,
      "js": 44546
    },
    "@epam/electric": {
      "css": 2289,
      "js": 2422
    },
    "@epam/promo": {
      "css": 47621,
      "js": 9139
    },
    "@epam/uui-extra": {
      "css": 0,
      "js": 213
    },
    "@epam/loveship": {
      "css": 53611,
      "js": 39207
    },
    "@epam/uui-components": {
      "css": 22674,
      "js": 236097
    },
    "@epam/uui-core": {
      "css": 0,
      "js": 325585
    },
    "@epam/uui-db": {
      "css": 0,
      "js": 42633
    },
    "@epam/uui-docs": {
      "css": 2511,
      "js": 177071
    },
    "@epam/uui-editor": {
      "css": 12921,
      "js": 165126
    },
    "@epam/uui-timeline": {
      "css": 2202,
      "js": 75107
    },
    "@epam/uui": {
      "css": 190990,
      "js": 315547
    }
  }
}

Generated by: generate-components-api
CI Status: ok

Total amount of exported types/props without JSDoc comments

Amount
Types 326 (+0) 🆗
Props 226 (+0) 🆗

@AlekseyManetov AlekseyManetov merged commit 856dbb4 into develop Apr 24, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants