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

Add skipReplaceTransitions prop to HolyLoader #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hootanht
Copy link

Fixes #23

Add skipReplaceTransitions prop to HolyLoader component to skip loader for replaceState transitions.

  • src/index.tsx
    • Add skipReplaceTransitions prop to HolyLoaderProps interface.
    • Update HolyLoader component to handle skipReplaceTransitions prop.
    • Skip loader for replaceState transitions when skipReplaceTransitions is true.
  • README.md
    • Add skipReplaceTransitions prop to the API section.
  • src/tests/holyLoader.test.ts
    • Add tests to verify the behavior of skipReplaceTransitions prop.

Fixes tomcru#23

Add `skipReplaceTransitions` prop to `HolyLoader` component to skip loader for `replaceState` transitions.

* **src/index.tsx**
  - Add `skipReplaceTransitions` prop to `HolyLoaderProps` interface.
  - Update `HolyLoader` component to handle `skipReplaceTransitions` prop.
  - Skip loader for `replaceState` transitions when `skipReplaceTransitions` is true.
* **README.md**
  - Add `skipReplaceTransitions` prop to the API section.
* **src/__tests__/holyLoader.test.ts**
  - Add tests to verify the behavior of `skipReplaceTransitions` prop.
@tomcru
Copy link
Owner

tomcru commented Nov 16, 2024

Thank you for the PRs @hootanht
I'll get to reviewing tomorrow ✌️

@tomcru
Copy link
Owner

tomcru commented Nov 17, 2024

Can you explain the testing setup from your PRs? It does not run.

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.

Feature: Skip replace transitions
2 participants