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.

Problem with sprintf in React component

See original GitHub issue

Description

I encountered a problem with sprintf when I tried to use it with a React component (InputNumber of Ant Design) When I use regular string concatenation everything works as expected.

Repro code

bug_sprintf

Expected and actual results

Expected

No exception 😃

Actual

capture

Related information

  • dotnet fable --version = 1.3.15
  • dotnet --version = 2.1.105
  • Windows 10 Education Version 10.0.17134 Build 17134
  • Chrome Version 67.0.3396.87 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jun 29, 2018

Hi @alfonsogarciacaro

sorry for the late reply. I’d like to use this as an opportunity to contribute to Fable. I just need to onboard compiler development, then I hopefully manage to send a PR with a fix 😄.

0reactions
alfonsogarciacarocommented, May 11, 2021

Closing for now, please reopen if this is still an issue with Fable 3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React component inside interpolated React Component
I have a simple <Trans/> React Component which allows to translate a key with some properties (I use sprintf). For example:
Read more >
Developers - Problem with sprintf in React component -
Description. I encountered a problem with sprintf when I tried to use it with a React component (InputNumber of Ant Design)
Read more >
Top 5 sprintf-js Code Examples
To help you get started, we've selected a few sprintf-js examples, based on popular ways it is used in public projects. Secure your...
Read more >
sprintf-js
Start using sprintf-js in your project by running `npm i sprintf-js`. There are 2435 other projects in the npm registry using sprintf-js.
Read more >
PHP sprintf() Function
The sprintf() function writes a formatted string to a variable. The arg1, arg2, ++ parameters will be inserted at percent (%) signs in...
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