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.

Support for context (variables) in import()?

See original GitHub issue

Hi! Thanks for the great work. Seems like a very good contender on the field of making SSR nice and round.

Comparing with some other solutions I was wondering whether the solution supports context imports like import(`./views/${viewName}`) - would be somewhat nicer than wrapper each individual view/page.

The reason I am writing an issue is because there is nothing officially mentioned in the docs.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gregbergecommented, May 15, 2018

So you will have one Loadable component for each possible view.

0reactions
gregbergecommented, May 15, 2018

I think this is not a good approach, views are already known because they are actually real files. I suggest you to generate the whole possibilities, you can do it using a custom script or maybe Prepack.

Read more comments on GitHub >

github_iconTop Results From Across the Web

contextvars — Context Variables — Python 3.11.1 ...
This module provides APIs to manage, store, and access context-local state. The ContextVar class is used to declare and work with Context Variables....
Read more >
Context Variables in Python - GeeksforGeeks
Context variable objects in Python is an interesting type of variable which returns the value of variable according to the context.
Read more >
Fetching Context Variables by identifier - Stack Overflow
I'm trying to use the new contextvars library (https://docs.python.org/3/library/contextvars.html) to make certain values available across ...
Read more >
Thread Context Variables in Python
You can create and use context variables via the contextvars.ContextVar class. In this tutorial you will discover how to use context ...
Read more >
Trigger Context Variables | Apex Developer Guide
All triggers define implicit variables that allow developers to access run-time context. These variables are contained in the System.Trigger class. Variable ...
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