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.

Setting default collator in fractal.js is failing

See original GitHub issue

I’m setting the following in fractal.js

fractal.components.set('default.collator', function(markup, item) {
  return `${markup}`;
});

I’m still getting the default output around each component with "collated": true (using config.json):

<!-- Start: @icon--notext -->
<button class="cs-icon cs-icon-notext"  type="button">Icon</button>
<!-- End: @icon--notext -->

I’ve restarted the server, ensured I’m on the latest version, and have gotten the component working with a config.js file and setting collated: truewith my own collator method. So I know the collated feature is working, but setting it globally seems to be failing.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jaasumcommented, Apr 11, 2017

Ha, that makes more sense. Yes - I’ll get a demo repo together.

0reactions
stale[bot]commented, Jul 12, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration reference | Fractal
Default collation function, responsible for collating components. fractal.components.set('default.collator', function(markup, item) { return ...
Read more >
sitemap-questions-88.xml - Stack Overflow
... .com/questions/311052/setting-css-pseudo-class-rules-from-javascript ... .com/questions/1448600/change-default-prompt-and-output-line-prefix-in-r ...
Read more >
npmsearchfullcat_npm143.txt - GitHub
=crzrcn 2013-11-23 0.0.1 23andme genomics node.js API genes synthetic ... line 4chanjs NodeJS and Browser 4chan API client =fractal 2013-12-06 0.1.0 4dlcd ...
Read more >
Nieuws | Grundsätzlich IT | information technology
Not all databases allow you to choose your own collation, but Microsoft SQL Server and ... The default settings for the database depend...
Read more >
packages by category - Hackage
ADPfusionSet library and test: Dynamic programming for Set data structures. ... elm-build-lib library: Compile Elm code to JS within Haskell ...
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