Commit Graph

9 Commits

Author SHA1 Message Date
水澜 f56497f694
feat: async data loader (#6137)
* chore: refactor unfinished

* feat: support create router

* refactor: render mode

* fix: code splitting false

* feat: add location for icestark

* chore: remove console

* test: examples

* fix: dataloader is undefined

* fix: test

* fix: test case

* fix: test case

* fix: types

* fix: test case

* fix: lock

* feat: async data loader

* fix: update lock

* fix: hydration

* fix: router

* fix: router

* chore: log

* fix: hmr

* fix: test

* fix: test

* feat: await

* fix: await component

* fix: lint

* refactor: type

* fix: type

* fix: app data loader

* fix: test

* fix: test

* test: async data

* test: async data

* docs: async data loader

* fix: lint

* refactor: loader config

* fix: test

* fix: compat with old useage

---------

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2023-04-25 10:47:40 +08:00
ClarkXia 6dfc4b00e1
Merge pull request #5875 from alibaba/release/next
Release 3.1.1
2023-02-20 11:52:53 +08:00
水澜 866ca0e2ab
feat: redirect imports (#5919)
* feat: redirect runtime imports

* chore: change log

* docs: add info for data loader
2023-02-15 19:35:02 -08:00
waynelee d70f5246f4
docs: don't import defineDataLoader as a type (#5901) 2023-02-12 22:59:25 +08:00
染陌同学 17161f9302
docs: add statit dataLoader (#5737) 2022-12-26 16:50:28 +08:00
Rhuzerv cffc9895a5
docs: modify the url to the correct repo (#5612) 2022-11-24 13:24:35 +08:00
NK 8a60304b0b Fix/miniapp problems (#671)
* fix(miniapp): page load after getAppData

* docs(miniapp): update miniapp-runtime readme

* feat(miniapp): support turn off rpx2vw using enableRpx2Vw

* chore(miniapp): update example

* fix(miniapp): outputDir is wrong in command line

* fix(miniapp): no log in build command

* fix(miniapp): history type

* chore(miniapp): update example

* feat(miniapp): support enableCache to disable cache in miniapp task

* fix(miniapp): throw error if no getConfig function in page component

* feat(miniapp): add params to specify getData and getConfig

* fix(miniapp): getData/getAppData existence situation

* feat(miniapp): normalize route in history

* fix: lint warning

* feat(miniapp): align Link to props and history.push props

* docs(miniapp): add more articles

* feat(miniapp): support nativeConfig in plugin-miniapp

* feat(miniapp): rename getConfig to pageConfig

* feat(miniapp): rename getData to dataLoader

* fix: lint warning

* docs: fix broken links

* docs(miniapp): update miniapp location and relative links

* Update start.md

Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 16:31:24 +08:00
ZeroLing d2c7e0696d chore: optimize (#676)
* chore: optimize with rax-compat docs

* refactor: add mock express types dependency

* refactor: change usage for definePageConfig

* chore: change docs

* docs: ICE to ice.js

* fix: templorary remove the type

* chore: handle with lint problems

* fix: lock file
2022-11-15 10:33:11 +08:00
水澜 80e6c059a4 docs: data loader (#667)
* refactor: data loader docs

* refactor: request.md

* refactor: img

* fix: incoherent sentence

* refactor: request to data loader

* refactor: app data loader docs

* chore: demo for data loader

* docs: multi data loader

* docs: data loader

* fix: remove dead code

* fix: video

* fix: video

* fix: height

* chore: update lock

* fix: use gif replace video

* fix: img width

* fix: link

* feat: add demo

* refactor: demo path

* fix: description

* docs: add return value type

* refactor: flow chart

* fix: link

* fix: flow chart

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-15 10:33:11 +08:00