alibaba / alibaba/hooks

[feat] 希望 `useLocalStorageState` 可以支持自定义过期时间

Open
#2,659 4 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
15k
Forks
2.8k
Avg merge
15h 7m
Merged PRs (30d)
2

Description

如题所示,如果有这个需求的话,我或许可以试着做一下?

Contributor guide

Open the contributing guide

Research direction

Start by locating the useLocalStorageState entry point and reading its current persistence behavior. Clarify the intended expiration semantics and API before implementation, then add or update the relevant tests to verify that custom expiration is stored and enforced.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.