-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
Description
Dumping this here from issue ractivejs/ractive#749 before it's closed and I forget:
- Currently, the docs for
.render()say that it will throw an error if you call it. This doesn't seem to be the case. In fact... http://docs.ractivejs.org/latest/ractive-render - If you try to attach the Ractive instance with
.insert()instead, the only other suitable method, you get an error:Uncaught Error: The API has changed - you must call 'ractive.render(target[, anchor])' to render your Ractive instance. Once rendered you can use 'ractive.insert()'.The issue here is that this is not spelled out in the docs (the fact that the instance must already have been rendered before.insert()), though it isn't not said, either. (Why can't it automatically be rendered if needed, though? And why is.render()set to throw a debug error if there's no other way to defer rendering?) http://docs.ractivejs.org/latest/ractive-insert .render()is not listed in the methods that support the Promise interface, despite implementing it. http://docs.ractivejs.org/latest/promises
Reactions are currently unavailable