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

Feature Request: Customizations for Loading Bar and Initial Loading Screen #1

Open
Peda1996 opened this issue Oct 25, 2023 · 0 comments

Comments

@Peda1996
Copy link

Description

I am currently using the react-current-page-fallback library in my React project to handle page transitions and loading states. It’s been a great help, but I’ve noticed that there are a couple of enhancements that could significantly improve the developer and user experience.

Feature Request

  1. Customizable Loading Bar: I would like to request the ability to customize the loading bar’s appearance, specifically its color. This would allow developers to maintain consistency with their application’s branding and overall design.

    Potential Solution: Introduce new props in the FallbackProvider or FallbackPageWrapper components that allow developers to specify the color of the loading bar.

    Example:

   <FallbackProvider loadingBarColor="#3498db">
     {/* ... */}
   </FallbackProvider>
  1. Initial Loading Screen: Currently, the library displays a yellow loading bar during initial page load. I would like to propose an enhancement where developers can introduce a custom initial loading screen instead of the default loading bar.

Potential Solution: Provide an additional prop in the FallbackProvider or FallbackPageWrapper components that allows developers to pass in a custom React component to be displayed during the initial load.

Example:

<FallbackProvider initialLoadingScreen={<CustomInitialLoadingScreen />}>
  {/* ... */}
</FallbackProvider>
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

No branches or pull requests

1 participant