Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit a13ab31

Browse files
committed
Set displayName as the Ruby class name
1 parent 0519821 commit a13ab31

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.3.0 (Edge)
2+
* Set `displayName` of component as the Ruby class name, which make it displayed better in [react-devtools](https://github.com/facebook/react-devtools)
3+
14
## 0.2.1
25
* Depends on opal `~> 0.6.0`, which accidentally got loosen in previous release
36

lib/react/api.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def self.native_component_class(type)
8686
this.__opalInstance = instance;
8787
return instance;
8888
},
89+
displayName: #{type.to_s},
8990
render: function() {
9091
var instance = this._getOpalInstance.apply(this);
9192
return instance.$render();

0 commit comments

Comments
 (0)