Coder Social home page Coder Social logo

Comments (5)

satya164 avatar satya164 commented on May 2, 2024

What do you mean by reloading a screen?

from rfcs.

FiberJW avatar FiberJW commented on May 2, 2024

Loading a screen as a new/fresh component which causes it to call its lifecycle methods again @satya164

from rfcs.

satya164 avatar satya164 commented on May 2, 2024

Why would you need support for this in navigation library? You can manage it yourself by extracting your component and rendering with a special key, or call the methods you want to be called again.

from rfcs.

FiberJW avatar FiberJW commented on May 2, 2024

Unless it becomes a highly-requested functionality, I don't think that it would need to become a named feature in the react-navigation API. For now, maybe a small note/guide in the docs explaining this potential use case and solutions for it would be most effective if users are to run into this need again.

from rfcs.

satya164 avatar satya164 commented on May 2, 2024

Closing this since it isn't very react-y to "reload" a component. If someone really really needs it, replace does the job fine, or by extracting the component and rendering with a new key.

With React Navigation 5 replace is available on all navigators, not just stack.

from rfcs.

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.