Commit Graph

11 Commits

Author SHA1 Message Date
ClarkXia a8a86d8b9c
docs: update api document (#6836) 2024-03-20 16:06:58 +08:00
水澜 474e19356f
feat: use scripts (#6238)
* feat: build for production

* feat: use scripts

* revert: production config

* feat: use render mode

* test: use scripts

* fix: export

* fix: exports

* fix: lint

* revert: lock

* feat: export useAppContext

* fix: type

* fix: type

* refactor: hooks name

* fix: type

* refactor: remove useRenderMode

* refactor: remove useRenderMode

* refactor: function name

* fix: export app config

* refactor: app context

* chore: add changelog

* chore: remove demo code
2023-06-05 16:01:11 +08:00
luhc228 842a2c00fb
docs: add searchParams usage (#5898) 2023-02-10 01:38:12 -08:00
luhc228 e339d4a003
optimize route docs (#5610)
* docs: update route config

* docs: get route info

* docs: route redirect

* docs: ignoreFiles in route docs

* docs: $.tsx

* feat: add route tip

* fix: comment
2022-12-07 19:17:17 +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
水澜 6ce0835d9b refactor: app data loader (#689)
* refactor: getAppData to dataLoader

* refactor: merge data loader logic in one file

* fix: comments
2022-11-15 16:31:09 +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
ClarkXia 167336a6cf docs: api (#628)
* docs: add api title

* docs: add api

* docs: api link
2022-11-15 10:32:49 +08:00
luhc228 2e57000afc feat: keep-alive (#556)
* feat: init keep-alive plugin

* chore: update lock

* feat: add api

* chore: remove plugin

* chore: not modify code

* fix: lock

* feat: support keep-alive

* chore: lock

* chore: update component name

* chore: add ref

* chore: import name

* docs: keep-alive

* chore: line break

* chore: remove unstable prefix
2022-11-15 10:32:49 +08:00
luhc228 7fe93e3503 feat: ClientOnly component (#542)
* feat: BrowserOnly Component

* docs: BrowserOnly component docs

* docs: optimize

* feat: export useIsBrowser Hook

* feat: useIsBrowser example

* docs: useIsBrowser

* docs: typo

* chore: clientOnly

* feat: ClientOnly and useMounted

* feat: add ClientOnly test

* docs: update docs

* feat: use hooks instead of Context

* chore: import name
2022-11-15 10:32:48 +08:00