Taking a Query Snapshot of a Firefly Semantics Slice Entity Store

Image by moonzigg from Pixabay

Scenario

We have a Firefly Semantics Slice Entity Store (EStore) that we are using to also store queries that we are executing against its contents.

We wish to take a snapshot of the query.

Approach

Simply use the getter for the query attached to the EStore .

searchStore.query = 'angular';const query = searchStore.query;

Demo

--

--

--

Founder of Firefly Semantics Corporation

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Role Based Authorization for your Vue.js and Nuxt.js Applications Using vue-kindergarten

Demystifying RxJS

I’m attending Remote React Summit.

Mendix unleashes client-side scripting potential!

Build a Forum Application

Higher Order Functions in JavaScript

Setting up ESLint and EditorConfig in React Native projects

An introduction to React Hooks by building a Notes app

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ole Ersoy

Ole Ersoy

Founder of Firefly Semantics Corporation

More from Medium

Indexing Typescript Todo Entities with Lunr

[React] Modal with Backdrop and slide animation effects

Custom Type Guards

Reauthenticating a user without redirection in OIDC