Skip to content

Several 'render' issues #91

Description

@jonvuri

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions