Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-10-23 13:41:57 +03:00
parent bbc2fea0d6
commit 00ca03e93b
2 changed files with 2 additions and 5 deletions

View File

@ -153,6 +153,7 @@ module.BaseStore = {
set data(value){
this.__data = value },
// XXX not sure if it is better to set these here or use index.IndexManagerMixin(..)
get index_attrs(){
return [...index.iter(this)] },
index: async function(action='get', ...args){

View File

@ -17,14 +17,10 @@
* - CLI
*
*
* XXX ASAP INDEX move index stuff to pwiki/index.js
* XXX INDEX move to the new index...
* XXX INDEX DOC can index validation be async???
* ...likely no
* XXX INDEX add option to set default action (get/lazy/cached)
* XXX INDEX might be a better idea to make the iterator (.index_attrs)
* and global method (.index(..)) out of the mixin and keep them
* as utility methods.
* ...the mixin can still live for convinience.
* XXX BUG: when editing the root page of a substore the page's .cache is
* not reset for some reason...
* ...the problem is in that .names() cache is not reset when a new