Skip to content

Fix: Removed duplicate Routes block to prevent redundant rendering#645

Merged
gauravsingh1281 merged 1 commit intogauravsingh1281:mainfrom
Rohitswami16:footer
Jan 10, 2025
Merged

Fix: Removed duplicate Routes block to prevent redundant rendering#645
gauravsingh1281 merged 1 commit intogauravsingh1281:mainfrom
Rohitswami16:footer

Conversation

@Rohitswami16
Copy link
Contributor

@Rohitswami16 Rohitswami16 commented Jan 8, 2025

  • Eliminated a second Routes block in App.jsx that caused components to render twice.
  • Ensured that routing logic is handled within the Preloader conditional.
  • Verified application layout to confirm proper rendering without duplication.
  • Improved overall code structure and performance by avoiding unnecessary renders.

🚀 Pull Request

This pull request resolves issue #644 by removing a redundant Routes block in the App.jsx file. The redundant block was causing components to render multiple times, leading to performance issues and unnecessary complexity in the codebase.

Key Improvements:

Ensured proper routing logic by handling it within the Preloader conditional.
Prevented duplicate component rendering, improving performance and readability.
Verified the application layout to ensure correct behavior and no duplication.


Related Issue
Fixes #644


Type of Change
What kind of change does this pull request introduce?

  • [✓] 🐛 Bug fix
  • 🚀 New feature
  • 📄 Documentation update
  • [✓] 🛠️ Code improvement/refactor
  • 🖼️ UI/UX update
  • Other (please specify)

Screenshots (if applicable)

Before changes

Screen.Recording.2025-01-08.200949.mp4

Screenshot (159)

After changes

Screen.Recording.2025-01-09.000916.mp4

Checklist
Please ensure the following tasks are complete before submitting the pull request:

  • [✓] I have tested my changes and ensured they work as expected.
  • I have added any necessary documentation or comments.
  • I have checked the existing issues and pull requests to avoid duplicates.
  • [✓] I have starred this repository.
  • [✓] I have reviewed my code for best practices and readability.
  • I have included any relevant tests (if applicable).

- Eliminated a second Routes block in App.jsx that caused components to render twice.
- Ensured that routing logic is handled within the Preloader conditional.
- Verified application layout to confirm proper rendering without duplication.
- Improved overall code structure and performance by avoiding unnecessary renders.
@netlify
Copy link

netlify bot commented Jan 8, 2025

Deploy Preview for visionary-fenglisu-db1b1d ready!

Name Link
🔨 Latest commit 33fafee
🔍 Latest deploy log https://app.netlify.com/sites/visionary-fenglisu-db1b1d/deploys/677eca0873bd08000880351a
😎 Deploy Preview https://deploy-preview-645--visionary-fenglisu-db1b1d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Great job, @Rohitswami16! 🎉 Thank you for submitting your pull request for Rentalog. Our dedicated team will review it diligently.Your contribution is valuable and we appreciate your efforts to improve our project.

@Rohitswami16
Copy link
Contributor Author

@gauravsingh1281 Please review the code and merge the PR. Let me know if any changes are required. Thank you

@gauravsingh1281 gauravsingh1281 merged commit 1002ad5 into gauravsingh1281:main Jan 10, 2025
4 checks passed
@gauravsingh1281
Copy link
Owner

Hey @Rohitswami16 please register yourself in the SWOC OS lead platform so that I can assign you the points.

@Rohitswami16
Copy link
Contributor Author

Hi @gauravsingh1281

Thank you for reaching out to me. This is my first time participating in something like this, and I’m very new to the process. Could you please share the registration link or provide guidance on how to register on the SWOC OS Lead platform? I’d appreciate any help or resources you can offer so that I can complete the process and you can assign the points.

@Rohitswami16
Copy link
Contributor Author

Hey @gauravsingh1281

I just wanted to let you know that I’ve registered on the OS Lead platform. Please let me know if there’s anything else I need to do to proceed.

@gauravsingh1281
Copy link
Owner

@Rohitswami16 share the screenshot of your profile on OS Lead.

@Rohitswami16
Copy link
Contributor Author

Screenshot 2025-01-12 170309

@gauravsingh1281
Copy link
Owner

@Rohitswami16 Done I added the points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: Footer Repeating and Overlapping with Hero Section (Home)

2 participants