menu

JS Everywhere

A community for the JavaScript Everywhere book by Adam Scott, published by O'Reilly.

Channels
Team
Posts
Members
Info

Something on Edit Form Ch.16

// if the current user and the author of the note do not match if (userdata.me.id !== data.note.author.id) { return <p>You do not have access to edit this note</p>; …

thumbsup
0
message-simple
5

Ch. 16 typo in UserForm

Should be value, I am going by the online version of the book. It is declared as "value" earlier, should be value.

thumbsup
0
message-simple
1

Web - breaking changes with Apollo Client 3.0

For one thing, cache.writeData (in App.js) has been deprecated. https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/#cache-improvements

thumbsup
0
message-simple
2

Chp 20: have error when build for Windows

In package.json, I have the following: "scripts": { "start": "electron src/index.js", …

thumbsup
0
message-simple
11

FYI :: On some android device (OnePlus 6 in my case) the text will be truncate.

This is because the default font is "OnePlus Slate". The easy fixed is to change the default font to "Roboto" (From device setting). I also try to fix it with a better method (IMHO) by styling the font property instead. However, it seems it doesn't work on <Button>

thumbsup
0
message-simple
3

Chp 21: Error "Something went wrong. 33.0.0 is not a valid SDK version"

After I follow the example given in the book and run the app in the Android emulator, it give the above error message. I try on my Android device (OnePlus6) and it has the same error. (I use Mac)

thumbsup
0
message-simple
4

Question about Hash & Salt (Chapter 7)

I think, I understand what hash & salt does but I don't understand how bcrypt does it. We use hash & salt to make sure that the hashed password are unique even if the original plain text password is the same. From the example I found online, the plain text password is concat…

thumbsup
0
message-simple
5

npm err! erros

I'm at the end of chapter 10 and I get an err when I attempt to run the curl command I think it may be an issue with my start up script, I've rebuild this app from the ground up not using the fork from git …

thumbsup
0
message-simple
3

GraphQL Playground signIn error

Receiving errors message: "data and hash arguments required" at Object.compare when I try to test: mutation{ signIn ( …

thumbsup
1
message-simple
17

Chapter 15. Web Authentication and State - issue with cache.writeData

Hello, I have a little problem with cache.writeData and I don't know how to handle it. I implementing the Sign-Up form (around 177 page). in the file …

thumbsup
1
message-simple
26