Skip to content

🐞Refactor blog filtering logic for maintainability #1597

@MiniduOshan

Description

@MiniduOshan

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The blogs page filtering logic is inside src/pages/blogs/index.tsx directly updates state inside a useEffect, which can become difficult to maintain as filters grow.

Current pattern:

setFilteredBlogs(filtered);

Possible improvements:

Extract filtering into a reusable utility function
Use useMemo for the derived filtered state

Expected behavior

Improve readability and scalability for future search/filter features

Add ScreenShots

No response

What browsers are you seeing the problem on?

No response

Record

  • I have read the Contributing Guidelines
  • I want to work on this issue
  • I am a part of gssoc26

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions