1 parent
4ae5e8f830
commit
63f732c8a2
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ interface IssueSseEvent {
|
||||
}
|
||||
|
||||
const { data } = useEventSource<string[], IssueSseEvent>(
|
||||
'http://localhost:3333/api/issues/events',
|
||||
`${window.location.origin}/api/issues/events`,
|
||||
['issue.created', 'issue.updated', 'issue.deleted'],
|
||||
{
|
||||
serializer: { read: (v) => (v ? JSON.parse(v) : null) },
|
||||
|
||||
Reference in new issue
Block a user