saqimtiaz / streams

TiddlyWiki plugin for rapid data entry with a keyboard driven workflow. Divide content into smaller tiddlers as you write.
BSD 3-Clause "New" or "Revised" License
58 stars 6 forks source link

`Maximum call stack size exceeded` error when rendering breadcrumb against a large lazy-loaded image-typed tiddler #13

Closed zhangxiubo closed 3 years ago

zhangxiubo commented 3 years ago

A simple fix is to omit image-typed and binary-typed tiddlers when generating the breadcrumb. In $:/plugins/sq/streams/breadcrumbs-view-template:17, instead of:

        <$wikify name="display-title" text={{{ [<currentTiddler>get[text]!is[blank]] ~[{!!title}] }}}>

one can change it to:

        <$wikify name="display-title" text={{{ [<currentTiddler>!is[image]!is[binary]get[text]!is[blank]] ~[{!!title}] }}}>

which resolved the issue for me.