Giter VIP home page Giter VIP logo

Comments (9)

yiminghe avatar yiminghe commented on June 14, 2024 3

support forceRender.

I suggest use action to do api work, not couple with ui

from tabs.

zetoke avatar zetoke commented on June 14, 2024

I created a pull request for this feature
#30

from tabs.

yiminghe avatar yiminghe commented on June 14, 2024

just rerender the whole tabs component

from tabs.

zetoke avatar zetoke commented on June 14, 2024

But how I can do render of one tab, if I don't click on the tab?

from tabs.

yiminghe avatar yiminghe commented on June 14, 2024

you do not need to, it will render when needed

from tabs.

zetoke avatar zetoke commented on June 14, 2024

But I need. I have some reusable complex component inside one of tab with heavy api work. So I want to force render one or two tabs to start working before click on it...

from tabs.

zetoke avatar zetoke commented on June 14, 2024

@yiminghe so, can I reopen pull request? I really need it. And I think this is very useful customization (for a bit amount of cases).
I don't want to fork this component or use another like react-tabs (it has this type of customization).

from tabs.

zetoke avatar zetoke commented on June 14, 2024

@yiminghe Thanks a lot!

I suggest use action to do api work, not couple with ui

Of course!
But I am on refactoring now. And I have some reusable parts, that have call stateless services with this api work. If I will start use actions, I will lost re-usability on this step.

from tabs.

deathmood avatar deathmood commented on June 14, 2024

@yiminghe thank you very much for forceRender feature!! this is the main reason I'm using your tabs but not other.

BTW you've got an error in readme -- forceUpdate should be set on TabPane but not TabContent

from tabs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.