Closed jseparovic closed 11 months ago
@jseparovic sorry for the late reply, this lib has not been tested yet on RemixV2 - I am in the process of updating it
Issue for tracking : https://github.com/dan-cooke/remix-sse/issues/9
@jseparovic sorry for the delay, everything is working for V2 now
:tada: This issue has been resolved in version 4.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@dan-cooke Awesome! Thanks heaps for this. Perfect timing, I’m just getting back to UI dev today
@jseparovic no problem! Let me know if the integration goes smoothly, I’m still ironing out some ES module issues but check the examples to see how to import in the meantime!
@dan-cooke Sounds good! Yeh I need to integrate with our existing inventory REST API. We have a Socket.IO server which is sending basic CRUD events for changes to inventory objects. This is my first remix project so still trying to figure out the events architecture and how to keep the UI updated as objects are updated in the API. I'm thinking the remix server will open a connection to the socket.io server and then use remix-sse to trigger the client UI to refresh as CRUD events come in.
@dan-cooke looks good now on 4.0.0 with remix v2.
Only issue I saw was the RemixSseProvider path changed from:
import {RemixSseProvider} from "remix-sse/client";
to
import {RemixSseProvider} from "remix-sse/dist/client";
Great! That’s right about the paths - in v4 I changed the build structure slightly in an attempt to use workspaces with the example projects
There is an open PR #13 where I am investigating the issue
i will also open an issue to track this as it’s not ideal
Hi,
I'm seeing the following error when trying the quick start on remix v2: