recent-data

Retrieve recent topics, resources, and pages from the session store via React hooks and selectors.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Staysr/lobe-windos-build --skill recent-data-staysr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recent-data
Source: https://github.com/Staysr/lobe-windos-build/tree/main/.agents/skills/recent-data
Command: npx skills add https://github.com/Staysr/lobe-windos-build --skill recent-data-staysr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Recent data (recentTopics, recentResources, recentPages) is stored in a session store to speed up access, improve navigation, and provide persistent context across views.

Core Features & Use Cases

  • Auto-initialization of recent data on app start and during user sessions
  • Type-safe access via selectors and clear API for each data type (topics, resources, pages)
  • Use Case: show a "recent items" panel in a dashboard or navigation menu, then clear history on user action

Quick Start

Initialize the three hooks at app startup to begin tracking and rendering recent items.

Frequently Asked Questions about recent-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track recently accessed data in a React application?

Track recently accessed data in a React application by initializing dedicated hooks at app startup to populate the session store, then reading values through selectors to render recent items in your UI.

What is the best way to manage recent pages and resources in a session store?

Managing recent pages and resources in a session store involves initializing hooks to auto-track user activity, providing type-safe structures and modular selectors to streamline access for navigation components.

How do I display recently used topics in a dashboard navigation menu?

Display recently used topics in a dashboard navigation menu by reading the recentTopics data from the session store via dedicated selectors, allowing you to render a persistent recent items panel for users.

Can I enforce type safety when accessing recent user history in TypeScript?

You can enforce type safety when accessing recent user history in TypeScript by utilizing defined RecentTopic, RecentResource, and RecentPage structures that support modular access patterns.

Does this recent data tracking approach work without external dependencies?

Yes, this recent data tracking approach works without external dependencies, relying solely on internal hooks and session store management to auto-initialize and retrieve recently accessed items.

How do I clear recent history items on a specific user action?

Clear recent history items on a specific user action by triggering the session store's clearing mechanism, removing the tracked recentTopics, recentResources, and recentPages data to reset the user context.