Comments (5)
Ah, I see what you're getting at. I'll take a look :)
from pup.
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.
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.
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.
@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)
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)
- Real-time updates HOT 6
- How to Connect to a react native app with pupql HOT 4
- compose is not a function HOT 3
- Update Apollo Client and Apollo Server Usage HOT 4
- Application stuck when trying to run. HOT 4
- checkIfBlackListed does not work as expected! HOT 4
- Paste true may be necessary on e2e tests login helper
- Incorporate Code Splitting for Pup V2 & client side Redux HOT 9
- Access Meteor settings file from Jest? HOT 2
- graphQL httpUri on staging and production settings HOT 1
- How to upgrade from v1-> v2 HOT 3
- Add License File
- Wildcard instead of GraphQL? HOT 3
- Upgrade to latest version of alanning:roles HOT 1
- is this repo still maintained? HOT 9
- Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:3000/graphql. (Reason: CORS request did not succeed). HOT 5
- Adding gql property to type user HOT 4
- Password only oauth possible? HOT 9
- Pup is moving!
- Apollo version and hooks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pup.