Github user benkeen commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/78#issuecomment-58052261
  
    Again, thanks for the feedback @garrensmith! All fixed locally. Just one 
thing I'm not clear on. I replaced the `this.rightHeader.resetQueryOptions()` 
call in ViewEditor.afterRender with:
    
    ```javascript
            FauxtonAPI.triggerRouteEvent('resetQueryOptions', {
              queryParams: this.params,
              hasReduce: this.hasReduce(),
              showStale: true
            });
    ```
    Then added an event on the Route Object that mapped to this: 
    
    ```
        resetQueryOptions: function(options) {
          this.rightHeader.resetQueryOptions(options);
        },
    ```
    However, now it appears that the `afterRender()` method of the ViewEditor 
fires twice, and the header components disappear. I don't understand what's 
happening there - anything obvious I'm missing? 



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to