I'm trying to do something on save as well, but the hook doesn't provide 
enough context

https://github.com/Jermolene/TiddlyWiki5/issues/196#issuecomment-171691438

IMO there should be a hook in the store for this. It seems like kind of a 
glaring omission.



On Wednesday, September 9, 2015 at 9:20:51 AM UTC-7, Jeremy Ruston wrote:
>
> Hi Danielo
>
> That was exactly what I was looking for.
>> Currently I'm using a startup module to subscribe to changes and operator 
>> over the changed tiddlers. Since the event listener listen for changes and 
>> change the tiddlers itself it's easy to fall to an infinite loop. I fixed 
>> it with a small cache tho control the latest modified tiddlers.
>> I was worried about performance, because ANY change in ANY way to ANY 
>> tiddler would trigger my listener, which means 99% of unnecessary function 
>> executions. Do you think this hook would improve performance.
>>
>
> Yes, it should. The hook is only invoked for tiddlers that are saved with 
> the "confirm" toolbar button.
>
> Best wishes
>
> Jeremy.
>
>  
>
>>
>> Regards.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWikiDev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywikidev.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywikidev/fe464617-7acc-49bf-97cb-4db3bdd6a45a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywikidev/fe464617-7acc-49bf-97cb-4db3bdd6a45a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/c5e3692f-02a9-4b22-9d47-827eda63fa7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to