Skip to content

Is this compatible with Nuxt 3 and does this support live queries? ? #8

Closed Answered by sandros94
dodanex asked this question in Q&A
Discussion options

You must be logged in to vote

Fist I will like to congrats you for the idea of building this module!

Thanks! 🙏

Is this compatible with Nuxt 3?

Yes it is. There has been an issue while publishing that page the first time and you may have seen a cached bersion.

And also I'll like to know if this module support Live queries?

It does! The useSurrealWS composable is all about real-time connection via websockets.

A short example would be

<template>
  <div>
    {{ data }}
  </div>
</template>

<script setup>
const { data, live } = useSurrealWS()

live('scores') // assuming a `scores` table
</script>

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dodanex
Comment options

@sandros94
Comment options

@sandros94
Comment options

@dodanex
Comment options

Answer selected by dodanex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants