LDflex / Query-Solid

Simple access to data in Solid pods through LDflex expressions
https://solid.github.io/query-ldflex/
MIT License
66 stars 15 forks source link

Clear cache to get edited values #42

Closed matthieu-fesselier closed 5 years ago

matthieu-fesselier commented 5 years ago

Is there a way to clear the LDFlex cache?
In Startinblox, there are many situations where the user displays a value, edit it, and needs to display it again. As we don't reload pages, we always have the old values returned by LDFlex

rubensworks commented 5 years ago

There should be a clearCache function that is exposed on path expressions: https://github.com/solid/query-ldflex/blob/ede10272df5178f1d5910f4888eee31061b7390f/src/index.js#L64-L65

RubenVerborgh commented 5 years ago

(And the document attribute is optional.)

matthieu-fesselier commented 5 years ago

Works great, thanks!