question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

re-render support

See original GitHub issue

After the first function call render, I’d like to change the id of gitalk, and call render again, but it does not work.

So, doest it support re-render? How ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
wongoocommented, Nov 12, 2018

I hacked it:

window.$docsify = {
  plugins: [
    function(hook, vm) {
      hook.doneEach(function(){
        document.getElementById('gitalk-container').innerHTML = "";
        NewGitalk().render('gitalk-container');
      });
     }	
  ]
}

function NewGitalk(){
  return new Gitalk({
    clientID: 'xxx',
    clientSecret: 'xxx',
    repo: 'xxx.github.io',
    owner: 'xxx',
    admin: ['xxx'],
    id: GenPageId()
  });
}
const gitalk = NewGitalk();
0reactions
XboxYancommented, Jul 9, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

visualforce - Action support Rerender not working
The solution is to re-render the parent of the section having the conditional changed. Looking at your page a good candidate would be...
Read more >
JSF ReRender support with selectBooleanCheckbox
Most common problem with using reRender is pointing it to the component that has a "rendered" attribute. Note, that JSF does not mark...
Read more >
reRender is not working from action support to page block table
Hii, I am trying to render a pageblock table and messgae component while changing selectList.But not reRender these component.
Read more >
Incremental refresh for datasets and real-time data in Power BI
With incremental refresh, the service dynamically partitions and separates data that needs to be refreshed frequently from data that can be ...
Read more >
a4j:support reRender after action delayed - JBoss.org
if you click the button, "text" is rerendered, but as "start", meaning the a4j:support doesn't wait until its action is finished to rerender...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found