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 receiving query params from other apps

See original GitHub issue

Describe the feature

Hi, I’d like to add a “Send to AST Explorer” feature to the TypeScript playground

Screen Shot 2019-11-05 at 3 46 51 PM

Which means doing something a bit like this PR which added support for receiving a gzipped string in the URL. E.g. something like?

https://astexplorer.net/?lang=JavaScript&parser=typescript#code/MYGwhgzhAEBiD29oEsC2AHEBTVWB2ALjAJIJIDeAUNNOgE7IBuYBW0AHgFzR4CuqAIyx1oAXmgBGANzVoweHggE6vYAXh0AFAEpo5aAF9ZAsFu3dG8ZABM9smjQIALOvADuPLB4CidV1oAiAFksZ3hbPHgCFAxsXEIsawA6AO0ZGiMjIA

I realize that AST explorer is considerably more complex than TS AST viewer because of all the other languages and parsers you support. Thus an issue for discussion rather than a PR. What do you think?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ortacommented, Nov 6, 2019

In this case we use unpkg - my goal is to have official “supported” versions get bundled with the TS website (as it’s a static site, we can then self-host all the monaco-editor deps) then the unpredictable at deploy time builds can go through unpkg https://github.com/microsoft/TypeScript-Website/issues/97

0reactions
fklingcommented, Dec 7, 2019

@andrewbranch sorry for the late reply and no worries. I have been thinking a lot about this, but haven’t come up with a good solution yet. Maybe I’m just stuck… The comments by @G-Rath and myself in https://github.com/fkling/astexplorer/pull/461#issuecomment-562810404 describe what the difficulties are and what a solution could look like. Any input/feedback/thoughts are appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Use Query Parameters with Angular Router
In this article, we will reference an example of an application that displays a list of products to understand how to use query...
Read more >
Unable to read querystring parameters from App.Component
The only one that fires between page navigations is the router.events , but there, I would have to manually parse the URL to...
Read more >
Use query parameters to customize responses - Microsoft Graph
Microsoft Graph supports optional query parameters that you can use to specify and control the amount of data returned in a response.
Read more >
Query Parameters - Branch.io
Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are...
Read more >
Query Parameters - Routing - Ember Guides
Query params allow for additional application state to be serialized into the URL that can't otherwise fit into the path of the URL...
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