Coder Social home page Coder Social logo

Comments (5)

cleverbeagle avatar cleverbeagle commented on May 18, 2024 1

Ah, I see what you're getting at. I'll take a look :)

from pup.

aferreol avatar aferreol commented on May 18, 2024 1

Just looked at the code, It's caused because the prop loggingIn is changing to true during login attempt, making the public component to return a simple <div /> because of this condition in the public component :

if (loggingIn) return <div />;

After Meteor.loggingIn() is going back to false, (so is the logginIn prop), the public component will return the login component, which has to re-render because it's been replaced by a simple div during the loggin attempt.

from pup.

cleverbeagle avatar cleverbeagle commented on May 18, 2024

Not sure I understand, can you provide a video of what's happening? Technically speaking, no, the page shouldn't be blinking. If a login attempt fails, you should see a message and remain on the login page until you can successfully login.

from pup.

joserocha3 avatar joserocha3 commented on May 18, 2024

I noticed this as well. It appears that the form submit causes the Public component to recreate the Login component. You do get the Bert alert, but the page completely re-renders which resets the form fields.

from pup.

aferreol avatar aferreol commented on May 18, 2024

@cleverbeagle You do remain on the login page, but react will render the component login another time, loosing any information in the inputs, making the login form disappear and appear again. (which means for example if you had to scroll to login, you will be back at the top of the page)

http://imgur.com/a/83EY5

here is a small gif of what's happening. The login wasn't re-rendering in base, that's why I asked the question :)

EDIT : Exactly like @joserocha3 said !

from pup.

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.