corejavascript / corejavascript/typeahead.js

Caching Trie data structure

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
968
Forks
231
PR merge metrics
No merged PRs in 30d

Description

Hi,

I faced an issue with caching internal search index structure inside `localStorage`. The problem is, when you change tokenized fields, nothing really happens — old structure is used and you need to manually clear `localStorage`.

So, it's not too critical, but I spent several hours to understand what's happening.

Perhaps it would be better to put the trie structure in `sessionStorage` or somehow mark this thing in the documentation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.