We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following javascript:
const TimersDashboard = React.createClass({ handleEditFormSubmit: function (attrs) { this.updateTimer(attrs); }, handleTrashClick: function (timerId) { this.deleteTimer(timerId); }, createTimer: function (timer) { const t = helpers.newTimer(timer); this.setState({ timers: this.state.timers.concat(t), }); }, deleteTimer: function (timerId) { this.setState({ timers: this.state.timers.filter((t => t.id !== timerId)), }); } });
We need to pick the range from handleTrackClick to deleteTimer.
handleTrackClick
deleteTimer
The following query doesnt work:
(.TimersDashboard .handleTrashClick)-(choose(.deleteTimer, 1))
The text was updated successfully, but these errors were encountered:
Note: Not blocking, just discovered this.
Possibly related: It doesn't appear you can choose() a parent and then select a child?
choose()
const SomeOtherComponent = () => ( <TimersDashboard /> ); const TimersDashboard = React.createClass({ handleEditFormSubmit: function (attrs) { this.updateTimer(attrs); }, });
If I ran this query:
choose(.TimersDashboard,1)
I'd correctly get the whole TimersDashboard declaration. However, if I wanted to just grab this:
TimersDashboard
handleEditFormSubmit: function (attrs) { this.updateTimer(attrs); },
Running this:
choose(.TimersDashboard,1) .handleEditFormSubmit
Returns the whole parent:
const TimersDashboard = React.createClass({ handleEditFormSubmit: function (attrs) { this.updateTimer(attrs); }, });
Sorry, something went wrong.
No branches or pull requests
Given the following javascript:
We need to pick the range from
handleTrackClick
todeleteTimer
.The following query doesnt work:
(.TimersDashboard .handleTrashClick)-(choose(.deleteTimer, 1))
The text was updated successfully, but these errors were encountered: