Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong type return in useChannel() #1591

Closed
phungvansyhb opened this issue Jan 23, 2024 · 4 comments
Closed

Wrong type return in useChannel() #1591

phungvansyhb opened this issue Jan 23, 2024 · 4 comments

Comments

@phungvansyhb
Copy link

Screenshot 2024-01-23 161448

Enviroment : nextjs , vscode

const {channel} = useChannel(TOPIC.GAME_ROOM.CREATE);
return channel has type Types.RealtimeChannelPromise which difference with Ably.Types.RealtimeChannelPromise.
And can't get code suggestion.

Copy link

sync-by-unito bot commented Jan 23, 2024

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-4047

@VeskeR
Copy link
Contributor

VeskeR commented Jan 25, 2024

Hello @phungvansyhb !

I couldn't manage to reproduce your issue on a bare bone Next.js app while using latest ably package version. It seems like the issue you're describing was fixed in v1.2.48 release, in #1509.

Could you please check if you're using the latest ably version available?

@phungvansyhb
Copy link
Author

@VeskeR I am sorry, I start with code base in gitHub. That's ok when I reinstall the latest version.

@VeskeR
Copy link
Contributor

VeskeR commented Jan 29, 2024

@phungvansyhb No worries, glad I could help and it's working now!
Closing as resolved.

@VeskeR VeskeR closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants