Posts by Mateus Henrique • 77 points
6 posts
-
0
votes1
answer699
viewsQ: this.setState does not work
Does anyone know why the this.setState(token: token_here) function is not working or returning error ? export default class Init extends Component<Props> { state = { // Evita que o código seja…
-
1
votes1
answer42
viewsQ: Question about the map function
I have this object { "alunos": [ { "aluno": { "id": 1, "nome": "Genevieve Sipes", "status": "Ativo" }, "mensalidade": { "status": "Débito" } }, { "aluno": { "id": 2, "nome": "Greyson Herman",…
-
1
votes3
answers4910
viewsQ: Consuming an API with Angular
I’m trying to consume an API with Angular 5 but it returns me this error: " Error trying to diff '[object Object]'. Only arrays and iterables are allowed at DefaultIterableDiffer.diff". Response…
-
2
votes1
answer170
viewsQ: Doubt about echo inside a loop
I have this code for an API test and I wanted each end of the loop to write on the screen the progress of the script in %, but it only shows when it finishes doing everything, there is some way to…
-
2
votes1
answer969
viewsQ: Error : The Response content must be a string or Object implementing __toString(), "Object" Given
I use Laravel 5.3 and I’m having this problem: The Response content must be a string or Object implementing __toString(), "Object" Given, when I try to use a route which returns an image of a…
-
1
votes1
answer283
viewsQ: Error Object of class daoMaterias could not be converted to string in daoMaterias.php on line 33
At the time of calling up the posting function I find this error : Object of class daoMaterias could not be converted to string, Does anyone know how to solve ? class daoMaterias { private $pdo; /*…