frankcollins3 / PHPokedex

react concepts
0 stars 0 forks source link

res.json() persisting through changes in VS code [5:53pm] #18

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

Screen Shot 2023-05-07 at 5 51 39 PM

referer: localhost:3000

Screen Shot 2023-05-07 at 5 53 46 PM

first proposed approach: npx kill-port 5000

this line of code allowed me to hit different routes and to return data. before it would only allow this endpoint to persist: app.use('/getData', getDataRouter)

frankcollins3 commented 1 year ago

Screen Shot 2023-05-07 at 5 56 07 PM

Screen Shot 2023-05-07 at 5 56 23 PM

this code sends data back but not the async fetch

[5:56pm]

frankcollins3 commented 1 year ago

npm i node-fetch did not solve this problem.

[6:04pm]

frankcollins3 commented 1 year ago

common JS syntax it is [6:44pm]