Giter VIP home page Giter VIP logo

Comments (4)

ryanflorence avatar ryanflorence commented on May 6, 2024

added in v0.12

from remix.

CanRau avatar CanRau commented on May 6, 2024

Not sure, maybe I missed something, but it seems that the links export doesn't receive any (loader) data, which is kinda a pity, curious if there's a particular reason?

I'm working on auto-generating route based styles and would be fantastic if I could access the loader data to auto link those styles based on mdx frontmatter slug, or actually in this case even location data

from remix.

jacob-ebey avatar jacob-ebey commented on May 6, 2024

Not sure, maybe I missed something, but it seems that the links export doesn't receive any (loader) data, which is kinda a pity, curious if there's a particular reason?

If we passed data we'd be introducing a waterfall where we couldn't start loading styles until after data resolves. We currently run data, styles, scripts all in parallel.

from remix.

CanRau avatar CanRau commented on May 6, 2024

Uh yeah understand, a recommended workaround? useEffect to manually link to styles?

Edit: For reference I want to mention that <DynamicLinks/> can be used for that, tho as I understand it they're not prefetched like the static links

from remix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.