Taking a Query Snapshot of a Firefly Semantics Slice Entity Store

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

--

--

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