Skip to content

feat: 🎸 appHistory and <Link /> can both take state#477

Merged
maoxiaoke merged 9 commits into
release/2.7.0from
feat/history-state
Dec 8, 2021
Merged

feat: 🎸 appHistory and <Link /> can both take state#477
maoxiaoke merged 9 commits into
release/2.7.0from
feat/history-state

Conversation

@maoxiaoke
Copy link
Copy Markdown
Collaborator

@maoxiaoke maoxiaoke commented Dec 7, 2021

Closes: #475

@maoxiaoke maoxiaoke requested a review from ClarkXia December 7, 2021 03:56
@maoxiaoke maoxiaoke changed the base branch from master to release/2.7.0 December 7, 2021 03:56
// `hashType' was relocated to the third argument.
const normalizeArgs = (state?: object | boolean, hashType?: boolean): [object, boolean] => {
if (typeof state === 'boolean') {
console.warn('[icestark]: hashType was relocated to the third argument.');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议仅在 dev 环境输出

Comment thread packages/icestark-app/src/appHistory.ts Outdated
@maoxiaoke maoxiaoke merged commit 2f42a89 into release/2.7.0 Dec 8, 2021
@delete-merged-branch delete-merged-branch Bot deleted the feat/history-state branch December 8, 2021 03:05
@maoxiaoke maoxiaoke mentioned this pull request Dec 8, 2021
4 tasks
maoxiaoke added a commit that referenced this pull request Dec 9, 2021
* fix: 🐛 add missing props for lifecycles (#440)
* fix: 🐛 narrow import error (#467)
* docs: ✏️ upgrade vite-plugin-index-html usage (#462)
* feat: 🎸 `appHistory` and `<Link />` can both take state (#477)
* refact/create micro app (#479)
* feat/cache css (#374)
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