Skip to content

replace mock like function #223

Open
@zigzagdev

Description

@zigzagdev

📝 TODOs for mock removal notes

  • Add a TODO comment in lib/api/feed.ts to indicate the mock will be replaced with a real API call
    // TODO: Replace mockPosts with real API response once the backend is ready.

  • Add a TODO comment in DashboardContainer.tsx near the fetchFeed() usage
    // TODO: Replace this call with real API logic once fetchFeed uses backend

  • Add a TODO comment in mock/posts.ts above the mockPosts definition
    // TODO: Temporary mock data for post feed. To be removed once real API is integrated.

  • Optionally, include an example of the expected real API implementation in feed.ts

    // TODO: Example future implementation
    // const response = await fetch('/api/feed');
    // if (!response.ok) throw new Error('Failed to fetch feed');
    // return await response.json();
  • Review all temporary/mock-dependent imports to ensure they’re isolated and clearly replaceable

Metadata

Metadata

Assignees

Labels

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions