Skip to content

Instantly share code, notes, and snippets.

Created April 14, 2022 17:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<div class="notifications rounded overflow-hidden shadow-lg">
<div class="order-container">
import { sdk } from "../../utils";
export default {
name: 'Notification',
orderStatus: ""
if(sdk.account.get !== null){
try {
sdk.subscribe('collections.62532d2523f63b230a93.documents', response => {
console.log(response.payload.orderStatus, 'order status payload' )
this.orderStatus = response.payload.orderStatus
} catch (error) {
console.log(error, 'error')
<style scoped>
width: 350px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment