-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnote.txt
52 lines (33 loc) · 1.5 KB
/
note.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
add node buildpack before ruby
run migratoin: heroku run rails db:migrate
heroky server log: heroku logs -t
for image url:
window.staticImages = {
headerImage: "<%= asset_url("link.png") %>"
}
so that you can use the variable window.staticImages.headerImage
trying to clear form input
dispatch(clearError)
link to other session form
reset:
Step 1: heroku restart
Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
Step 3: heroku run rake db:migrate
Step 4: heroku run rake db:seed (if you have seed)
-----week1------
doing nav bar( sizing position)
save current path in state ?
react-scroll !!
remove radius for sticky buttons
min width for sticky navbar ???
videos: iframes video tag
child component shouldnt be calling an action that can cause rerender for the parent. because when parent rerender, it will recreaate the child component, and when the child component is created, it will call the action again, and cause parent rerender again -> infinite loop
THe problem is the fetchAlls actions erase all old state shape, which make data of the show page lost, and it couldnt render,(keep loading). so we have to merge
new state with old state in a way that it doesnt erase the old data.
this.state.canvas1 (save canvas object in the state, so it wont recreate)
-----week2----
search: 2 approaches, search on frontend, or search on backend.
---> choose search on backend with SQL language and ActiveRecord
this.refs.commentBodyInput should be refers two different things
a
WORKING on RECIPE SHOW