SvenKirschbaum / react-stomp-hooks

This repository contain a react library which enables simple access to stomp subscriptions via hooks.
MIT License
59 stars 12 forks source link

Wrong import from stompJS #28

Closed thomascoffee closed 7 months ago

thomascoffee commented 7 months ago

After the 2.2.0 update, I got an error using connectHeaders in StompSessionProvider, saying that connectHeaders is not a correct property. In interface StompSessionProviderProps.d.ts, StompConfig is imported from import { StompConfig } from '@stomp/stompjs/esm6/stomp-config'; but should be imported from import { StompConfig } from '@stomp/stompjs';

SvenKirschbaum commented 7 months ago

Hello!

I just released version 2.2.1 which changes the import to use the correct location. Please check if your issue has been fixed by that change.

thomascoffee commented 7 months ago

Thanks a lot, works fine now!

thomascoffee commented 7 months ago

2.2.1 solved this issue