hoodiehq-archive/my-first-hoodie

SignUp dysfunctional until reload

Closed this issue · 4 comments

This is similar behavior to an earlier issue I filed, but kind of has the opposite behavior. After signup, the previously entered data is gone and the user isn't shown an signed in until a page reload (CMD+R) is triggered.

To reproduce this:

npm install hoodie-cli
hoodie cache clean
hoodie new appname
cd appname
hoodie start

I entered these items into the "new todo" input:

  • foo
  • bar
  • baz

This is how the page looks before signup:
before-signup

I clicked signup, entered in username and password (2x) and then clicked "SignUp" (blue button).

This is how the page is displayed after signup:
after-signup

This is how the page looks after reload:
after-reload

Just taking a glance at the source code I cannot see why this happens, but I'm pretty sure it's not hoodie.js's fault, but more the jQuery that doesn't listen to an even somewhere. Maybe it just isn't such a good idea to use jQuery as the example app. Maybe - on another issue - we should discuss what the example app for hoodie should look like and what frameworks it should use (if any).

janl commented

Can you share your bowser and OS versions?

On 17 Jul 2014, at 15:31 , David Pfahler notifications@github.com wrote:

This is similar behavior to an earlier issue I filed, but kind of has the opposite behavior. After signup, the previously entered data is gone and the user isn't shown an signed in until a page reload (CMD+R) is triggered.

To reproduce this:

npm install hoodie-cli
hoodie cache clean
hoodie new appname

cd
appname
hoodie start

I entered these items into the "new todo" input:

• foo
• bar
• baz
This is how the page looks before signup:

I clicked signup, entered in username and password (2x) and then clicked "SignUp" (blue button).

This is how the page is displayed after signup:

This is how the page looks after reload:


Reply to this email directly or view it on GitHub.

MacBook Pro Retina, 15-inch Late 2013;
Mac OS 10.9.4 (13E28)
Google Chrome Version 35.0.1916.153

gr2m commented

Thanks David, the screenshot and extensive details on how to reproduce are much appreciated. I'm looking into it now

gr2m commented

works now when following your instructions. Make sure to run hoodie cache clean to be 100% sure.