Support for receiving query params from other apps
See original GitHub issueDescribe the feature
Hi, I’d like to add a “Send to AST Explorer” feature to the TypeScript playground
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:
- Created 4 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@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!