Skip to content
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

Feat/support pullfresh #6121

Merged
merged 3 commits into from
Mar 30, 2023
Merged

Feat/support pullfresh #6121

merged 3 commits into from
Mar 30, 2023

Conversation

answershuto
Copy link
Collaborator

@answershuto answershuto commented Mar 29, 2023

close #6117

增加 pullfresh 配置

{pullfresh: true} 打开软刷,{pullfresh: {reload: true}} 打开硬刷。

// app.tsx
export const phaManifest: Manifest = {
  title: 'test',
  pullRefresh: {
    reload: true,
  },
  appWorker: {
    url: 'app-worker.ts',
  },
  routes: [
    {
      pageHeader: {},
      frames: [
        'blog',
        'home',
      ],
    },
    'home',
    'about',
    'custom',
  ],
};
// home.tsx
export const pageConfig = definePageConfig(() => {
  return {
    pullRefresh: true,
    queryParamsPassKeys: [
      'questionId',
      'source',
      'disableNav',
    ],
    title: 'Home',
  };
});

page 的优先级会覆盖 phaManifest 的配置。

@answershuto answershuto added the need review Need Review label Mar 29, 2023
@answershuto answershuto merged commit 83af288 into release/next Mar 30, 2023
@answershuto answershuto deleted the feat/support_pullfresh branch March 30, 2023 02:06
@ClarkXia ClarkXia mentioned this pull request Mar 30, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need review Need Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants