question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

three request on init

See original GitHub issue

I’m submitting a … (check one with “x”)

[ x] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior when app inits it sends three request for one json file Expected/desired behavior it should send one

Reproduction of the problem screenshot from 2017-01-18 11-58-40

Please tell us about your environment:

  • ng2-translate version: 5.0.0

  • Angular version: 2.3.1

  • Browser: [all ]

  • Language: [ TypeScript ]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
deegcommented, Feb 24, 2017

Is the fix for this to only allow one request to me made a time? I’m happy to work on a PR for this if that is an approach you want to take.

Or is the user just supposed to know not to call use and setDefaultLang for the same lang at the same time and this can be closed?

1reaction
bardiarastincommented, Feb 2, 2017

@ocombe would you please make a plunker ? at the moment this plunker is sending 2 requests for en.json

Read more comments on GitHub >

github_iconTop Results From Across the Web

Elm Http Request on Init - Stack Overflow
When you use Html.program, your init function returns the initial data for your Model and Command to be executed. Commands are side-effects, like...
Read more >
Multiple Init Requests - SAP Community
Hello Experts I have a scenario where i have to load data into two different targets with one infosource. I am loading the...
Read more >
telinit or init Command - IBM
The init command initializes and controls processes. Its primary role is to start processes based on records read from the /etc/inittab file. The...
Read more >
Command: init | Terraform - HashiCorp Developer
The terraform init command initializes a working directory containing ... or in a third-party provider registry, terraform init will automatically find, ...
Read more >
fetch() - Web APIs | MDN
The promise resolves to the Response object representing the response to your request. A fetch() promise only rejects when a network error is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found