Skip to content

fix(fuselage-hooks): Preserve generic type of useLocalStorage and useSessionStorage - #1757

Merged
tassoevan merged 1 commit into
mainfrom
fix/use-storage-type
Sep 18, 2025
Merged

fix(fuselage-hooks): Preserve generic type of useLocalStorage and useSessionStorage#1757
tassoevan merged 1 commit into
mainfrom
fix/use-storage-type

Conversation

@tassoevan

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

It ensures that the function type of useLocalStorage and useSessionStorage has a generic parameter.

Issue(s)

Further comments

Function.prototype.bind erases generic parameters due to inference.

@tassoevan
tassoevan requested a review from a team September 18, 2025 02:13
@changeset-bot

changeset-bot Bot commented Sep 18, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a1f7225

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@rocket.chat/fuselage-hooks Patch
@rocket.chat/logo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tassoevan tassoevan added 🐛 Bug Something isn't working 📦 fuselage-hooks labels Sep 18, 2025
@tassoevan
tassoevan merged commit a1bcbe8 into main Sep 18, 2025
7 checks passed
@tassoevan
tassoevan deleted the fix/use-storage-type branch September 18, 2025 13:01
@github-actions github-actions Bot mentioned this pull request Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bug Something isn't working 📦 fuselage-hooks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants