Questions tagged [stateless]

Stateless apps don't expose any information about what has happened or changed since it started running

Stateless apps don't expose any information about what has happened or changed since it started running. They give the same response to the same request, function or method call, every time. HTTP is stateless in its raw form - if you do a GET to a particular URL, you get (theoretically) the same response every time. The exception of course is when we start adding statefulness on top, e.g. with ASP.NET web apps :) But if you think of a static website with only HTML files and images, you'll know what I mean.

521 questions
4
votes
1 answer

Regarding Rest "Communicate statelessly" principle

One of the rest key principle is not to maintain state on a server or to communicate statelessly. I want to have views how this principle works on shopping cart? So, say if the user is adding products in a shopping cart from a shopping website. In…
ashishgupta_mca
  • 578
  • 6
  • 27
4
votes
1 answer

Creating global variables using JavaScript for QML

I'm having an issue with QML/JS integration. I have a javascript list variable stored in a .js file. I want to write to this variable from one QML file, and read it from another QML file. I cannot seem to find a solution to this. I've…
4
votes
1 answer

Python micro-framework for RESTful applications?

Previously I have been using web2py, it's quite good but a little heavy for my purposes. Basically I am seeking a Python microframework with: Automatic no-arg function -> controller (endpoint) conversion (or simple @app.route() style…
A T
  • 13,008
  • 21
  • 97
  • 158
4
votes
1 answer

JSF vs CDI SessionScope has odd effects on Statelss EJB transaction. Can anyone explain?

I've got a SessionScoped managed bean (UserInfoController) with an Injected Stateless Session Bean (UserInfoService). UserInfoController calls the UserInfoService to update UserInfo records. The UserInfoService loads the appropriate UserInfo…
bneuman
  • 79
  • 6
4
votes
3 answers

Is GAE Stateless? What are the implications?

I was once told that GAE is stateless. I understand the concept of statelessness in general but I could use some guidance in conceptually applying it to a GAE-type-system. I'm asking this question specifically because I an app I've developed…
3
votes
1 answer

Local stateless EJB injection within singleton startup EJB

is this possible somehow? Following scenario: statelesse local EJB with name A singleton startup EJB with name B B contains a reference to A I tried but my application server (WAS) fails on application startup with the error that A was not found.…
Steffen Harbich
  • 2,639
  • 2
  • 37
  • 71
3
votes
1 answer

How to check if the context is there rather than isMounted because I'm using Stateless Widget

I'm using StateLess Widget and I want to check if the context not disposed before showing up the dialog, without using the isMounted method so is there any solution for that ?
Flutter Dev
  • 488
  • 3
  • 18
3
votes
1 answer

Google Cloud Function Gen 1 Deployment Failure

This is mostly for the community, because it took me quite a while to figure out. I have a python 3.9 environment stateless Google Cloud Function using pytorch. The initial deployment and function creation has no errors/issues. Requirements.txt…
3
votes
2 answers

Why does a change in state of a child bottom sheet trigger a rebuild of parent widget?

I have a Scaffold screen (ListsScreen). Which has a Button(AddNewListButton) that opens up a Modal Bottom Sheet (ListScreenBottomSheetWidget). Bottom Sheet has TextField (ListTitleInputTextFieldWidget). When i tap the TextField to open the…
Hassan Hammad
  • 172
  • 1
  • 9
3
votes
2 answers

Add Input Field onClick stateless component React Electron

I'm new to electron, and working on trying to get React/Typescript with Hooks and ApplicationContext to all come together. I didn't create the framework and I need to learn how to make this work. Just setting the context to avoid answers like, use…
llamacorn
  • 551
  • 4
  • 23
3
votes
0 answers

Why shouldn't use arrow functions for declaring stateless components in react?

according to Airbnb React style guide, It's better to use a normal function for declaring stateless component, rather than use an Arrow function. My question is why a normal function is…
3
votes
1 answer

Going "Stateless" and loading scripts dynamically

What I want to know is if I am approaching this from the right angle. I have an asp.net app I am building. I am using a Masterpage for the overall look of the app (below you can see the code). I'd like to have the menu system use a dynamic load…
Mike Fielden
  • 10,055
  • 14
  • 59
  • 99
3
votes
1 answer

react stateless child components do not update on state change in parent component

I'm building a small tabbed application in which each tab renders a child component. I wanted each tab to display different content so I created an object contentTypes outside render(){ .... } to map each tab to it's corresponding child component.…
3
votes
1 answer

React HOC : render hijacking with functional components

From this blog article, the rendering of a component can be altered this way: function iiHOC(WrappedComponent) { return class Enhancer extends WrappedComponent { render() { const elementsTree = super.render() let newProps = {}; …
3
votes
4 answers

Is there a way using ASP.NET to always run some server side code when a user leaves a page?

I was wondering if there is any way to always run some server side code when a user leaves a page in ASP.NET. The page Unload event is no good because that doesn't get called if someone clicks on a link. Ideally I'd also like the code to run even if…
Phil Hale
  • 3,453
  • 2
  • 36
  • 50