Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gen4] key not working #15

Closed
kevinresol opened this issue Nov 1, 2018 · 1 comment
Closed

[gen4] key not working #15

kevinresol opened this issue Nov 1, 2018 · 1 comment

Comments

@kevinresol
Copy link
Member

class Main extends coconut.ui.View {
  static function main() {
    coconut.Ui.hxx('<Main/>').renderInto(js.Browser.document.body);
  }
  function render() '<div><Foo/></div>';
}

class Foo extends coconut.ui.View {
	@:state var key:String = '1';
	function render() '<div key=${key}/>';
	override function viewDidMount() key = '2';
}

See error in console:

 TypeError: Cannot read property 'insertBefore' of null
@back2dos
Copy link
Member

Fixed.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants